freebsd-ports/graphics/qiv/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: qiv
# Date created: 25 December 1998
# Whom: Bill Fumerola <billf@chc-chimes.com>
#
1999-08-25 08:16:32 +02:00
# $FreeBSD$
#
PORTNAME= qiv
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.klografx.net/qiv/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
2003-03-01 15:34:33 +01:00
COMMENT= Small, fast GDK/Imlib image viewer
OPTIONS= XINERAMA "use multiple monitors (XFree86 4 and X.org only)" off
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_GNOME= imlib
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
2000-10-05 08:57:56 +02:00
MAN1= qiv.1
2004-01-30 23:51:45 +01:00
PLIST_FILES= bin/qiv
2004-02-26 10:28:49 +01:00
.include <bsd.port.pre.mk>
pre-configure:
.if defined(WITH_XINERAMA)
@${ECHO_MSG} compiling with Xinerama support
@${MV} -v ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
@${SED} -e 's/\# GTD_XINERAMA/GTD_XINERAMA/' \
< ${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
.else
@${ECHO_MSG} compiling without Xinerama support
2004-02-26 10:28:49 +01:00
.endif
do-configure:
@ ${MV} ${WRKSRC}/qiv.1 ${WRKSRC}/qiv.1.pre_sed
@ ${SED} -e 's#\/usr\/bin#${PREFIX}/bin#g' \
${WRKSRC}/qiv.1.pre_sed > ${WRKSRC}/qiv.1
@ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
@ ${SED} -e 's#\/usr\/local#${PREFIX}#' \
-e 's#gcc#${CC}#' \
-e 's#-O2#${CPPFLAGS} ${CFLAGS}#' \
-e 's#libs-gdk`#libs-gdk` ${LDFLAGS}#' \
${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qiv ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/qiv.1 ${PREFIX}/man/man1/
2004-02-26 10:28:49 +01:00
.include <bsd.port.post.mk>