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

(-)qiv/Makefile (-21 / +13 lines)
Lines 2-27 Link Here
2
# Date created:		25 December 1998
2
# Date created:		25 December 1998
3
# Whom:			Bill Fumerola <billf@chc-chimes.com>
3
# Whom:			Bill Fumerola <billf@chc-chimes.com>
4
#
4
#
5
# $Carpetsmoker: ports/graphics/qiv/Makefile,v 1.1 2008/01/25 01:17:28 carpetsmoker Exp $
5
# $FreeBSD: ports/graphics/qiv/Makefile,v 1.31 2007/05/19 20:10:36 flz Exp $
6
# $FreeBSD: ports/graphics/qiv/Makefile,v 1.31 2007/05/19 20:10:36 flz Exp $
6
#
7
#
7
8
8
PORTNAME=	qiv
9
PORTNAME=	qiv
9
PORTVERSION=	2.0
10
PORTVERSION=	2.1pre12
10
PORTREVISION=	2
11
CATEGORIES=	graphics
11
CATEGORIES=	graphics
12
MASTER_SITES=	http://www.klografx.net/qiv/download/
12
MASTER_SITES=	http://www.klografx.net/qiv/download/
13
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
13
DISTNAME=	${PORTNAME}-${PORTVERSION:S/pre/-pre/}
14
EXTRACT_SUFX=	.tgz
14
EXTRACT_SUFX=	.tgz
15
15
16
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	carpetsmoker@xs4all.nl
17
COMMENT=	Small, fast GDK/Imlib image viewer
17
COMMENT=	Small, fast GDK/Imlib image viewer
18
18
19
OPTIONS=	XINERAMA "use multiple monitors" off
19
OPTIONS=	XINERAMA "use multiple monitors" off
20
USE_GETOPT_LONG=yes
20
USE_GETOPT_LONG=yes
21
USE_GMAKE=	yes
21
USE_GMAKE=	yes
22
USE_GNOME=	imlib
22
USE_GNOME=	imlib
23
USE_X_PREFIX=	yes
24
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
25
23
26
MAN1=		qiv.1
24
MAN1=		qiv.1
27
PLIST_FILES=	bin/qiv
25
PLIST_FILES=	bin/qiv
Lines 29-53 Link Here
29
.include <bsd.port.pre.mk>
27
.include <bsd.port.pre.mk>
30
28
31
pre-configure:
29
pre-configure:
32
.if defined(WITH_XINERAMA)
30
.if ! defined(WITH_XINERAMA)
33
	@${ECHO_MSG} compiling with Xinerama support
34
	@${MV} -v ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
35
	@${SED} -e 's/\# GTD_XINERAMA/GTD_XINERAMA/' \
36
		< ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
37
.else
31
.else
38
	@${ECHO_MSG} compiling without Xinerama support
32
	@${REINPLACE_CMD} 's|GTD.*=|#|' ${WRKSRC}/Makefile
39
.endif
33
.endif
40
34
41
do-configure:
35
do-configure:
42
	@ ${MV} ${WRKSRC}/qiv.1 ${WRKSRC}/qiv.1.pre_sed
36
	@${REINPLACE_CMD} 's|/usr/bin|${PREFIX}/bin|g' \
43
	@ ${SED} -e 's#\/usr\/bin#${PREFIX}/bin#g' \
37
		${WRKSRC}/qiv.1
44
		${WRKSRC}/qiv.1.pre_sed > ${WRKSRC}/qiv.1
38
	@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|; \
45
	@ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
39
		s|gcc|${CC}|; \
46
	@ ${SED} -e 's#\/usr\/local#${PREFIX}#' \
40
		s|-O2|${CFLAGS}|; \
47
	         -e 's#gcc#${CC}#' \
41
		s|libs-gdk`|libs-gdk` ${LDFLAGS}|;' \
48
	         -e 's#-O2#${CPPFLAGS} ${CFLAGS}#' \
42
		${WRKSRC}/Makefile
49
	         -e 's#libs-gdk`#libs-gdk` ${LDFLAGS}#' \
50
		${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
51
43
52
do-install:
44
do-install:
53
	${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
45
	${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
(-)qiv/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qiv-2.0-src.tgz) = 165d0c2f264718821f94732196b7f9e1
1
MD5 (qiv-2.1-pre12.tgz) = 80ba1e2da5115a3cc3a6f7e19cb620d8
2
SHA256 (qiv-2.0-src.tgz) = 2f0c03ee7e79c9210f060c87d51811e4540f126d8c3d751b31aab69160b3d091
2
SHA256 (qiv-2.1-pre12.tgz) = d54edb92ca91567e2a12b536acc14500efdbccc38718efba99cadaa161a1e70c
3
SIZE (qiv-2.0-src.tgz) = 76561
3
SIZE (qiv-2.1-pre12.tgz) = 94059

Return to bug 119958