View | Details | Raw Unified | Return to bug 172017
Collapse All | Expand All

(-)graphics/imagesort/Makefile (-16 / +28 lines)
Lines 1-36 Link Here
1
# New ports collection makefile for:	imagesort
1
# Created by: Mark Pulford <mark@kyne.com.au>
2
# Date created:			Apr 10, 2001
3
# Whom:				Mark Pulford <mark@kyne.com.au>
4
#
5
# $FreeBSD: ports/graphics/imagesort/Makefile,v 1.19 2012/06/13 20:55:51 pav Exp $
2
# $FreeBSD: ports/graphics/imagesort/Makefile,v 1.19 2012/06/13 20:55:51 pav Exp $
6
#    $MCom: ports/graphics/imagesort/Makefile,v 1.1 2006/10/04 13:18:57 ahze Exp $
7
3
8
PORTNAME=	imagesort
4
PORTNAME=	imagesort
9
PORTVERSION=	2.0
5
PORTVERSION=	2.0
10
PORTREVISION=	11
6
PORTREVISION=	11
11
CATEGORIES=	graphics
7
CATEGORIES=	graphics
12
MASTER_SITES=	${MASTER_SITE_SUNSITE}
8
MASTER_SITES=	SUNSITE/apps/graphics/viewers/X
13
MASTER_SITE_SUBDIR=	apps/graphics/viewers/X
14
9
15
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A flexible X utility for managing many image files
11
COMMENT=	A flexible X utility for managing many image files
17
12
18
LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
13
LICENSE=	GPLv2
19
		png15:${PORTSDIR}/graphics/png \
20
		gif.5:${PORTSDIR}/graphics/giflib
21
14
22
BROKEN=		does not compile
15
LIB_DEPENDS=	gif:${PORTSDIR}/graphics/giflib \
16
		jpeg:${PORTSDIR}/graphics/jpeg \
17
		png15:${PORTSDIR}/graphics/png
18
19
OPTIONS_DEFINE=	DOCS
23
20
24
USE_XORG=	x11 xt
21
USE_XORG=	x11 xt
25
USE_GNOME=	imlib
22
USE_GNOME=	imlib
26
CFLAGS:=	${CFLAGS} -I${LOCALBASE}/include
23
MAKE_JOBS_SAFE=	yes
24
25
PORTDOCS=	README imagesortrc.sample
26
PLIST_FILES=	bin/imagesort
27
28
.include <bsd.port.options.mk>
29
30
post-patch:
31
	@${REINPLACE_CMD} -e \
32
		'/^CC/s| =| ?=| ; \
33
		 /^LIBS/s| =.*| = `imlib-config --libs`| ; \
34
		 /^CFLAGS/s| =.*| += `imlib-config --cflags`|' ${WRKSRC}/Makefile
35
	@${REINPLACE_CMD} -e \
36
		's|unsigned int argc|int argc| ; \
37
		 s|^#endif.*|#endif|' ${WRKSRC}/imagesort.c
27
38
28
do-install:
39
do-install:
29
	${INSTALL_PROGRAM} ${WRKSRC}/imagesort ${PREFIX}/bin
40
	${INSTALL_PROGRAM} ${WRKSRC}/imagesort ${PREFIX}/bin
30
.if !defined(NOPORTDOCS)
41
.if ${PORT_OPTIONS:MDOCS}
31
	${MKDIR} ${PREFIX}/share/doc/imagesort
42
	@${MKDIR} ${DOCSDIR}
32
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/imagesort
43
.for f in ${PORTDOCS}
33
	${INSTALL_DATA} ${WRKSRC}/imagesortrc.sample ${PREFIX}/share/doc/imagesort
44
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
45
.endfor
34
.endif
46
.endif
35
47
36
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)graphics/imagesort/files/patch-Makefile (-20 lines)
Lines 1-20 Link Here
1
--- Makefile.orig	Tue Apr 10 18:16:03 2001
2
+++ Makefile	Tue Apr 10 18:18:54 2001
3
@@ -7,15 +7,14 @@
4
 
5
 # you may need to change this if you lack gcc (in which case you may
6
 # not be able to compile at all
7
-CC = gcc
8
 
9
 # you'll probably have to dick with the libs, depending on how your imlib
10
 # is compiled.  We default to including all of the extras supported by
11
 # imlib 1.9
12
-LIBS = -lX11 -lXext -lImlib -ljpeg -lm -lpng -ltiff -lz -lgif
13
+LIBS = -lX11 -lXext -lImlib -ljpeg -lm -lpng -ltiff -lz -lgif
14
 #LIBS = -lImlib -lX11 -lXext -ljpeg -lgif -lm
15
 
16
-CFLAGS = -g -L$(XDIR)/lib -I$(XDIR)/include 
17
+CFLAGS += -L$(LOCALBASE)/lib -I$(LOCALBASE)/include 
18
 
19
 all: imagesort.o
20
 
(-)graphics/imagesort/pkg-plist (-4 lines)
Lines 1-4 Link Here
1
bin/imagesort
2
%%PORTDOCS%%share/doc/imagesort/README
3
%%PORTDOCS%%share/doc/imagesort/imagesortrc.sample
4
%%PORTDOCS%%@dirrm share/doc/imagesort

Return to bug 172017