1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/graphics/pqiv/Makefile
Emanuel Haupt c1debdf89a Update to 0.11
PR:		159477
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2011-08-10 16:24:49 +00:00

78 lines
1.9 KiB
Makefile

# New ports collection makefile for: graphics/pqiv
# Date created: March 28 2008
# Whom: Martin Tournoij <carpetsmoker@xs4all.nl>
#
# $FreeBSD$
#
PORTNAME= pqiv
PORTVERSION= 0.11
CATEGORIES= graphics
MASTER_SITES= http://www.pberndt.com/raw/Programme/Linux/pqiv/_download/
EXTRACT_SUFX= .tbz
MAINTAINER= ports@FreeBSD.org
COMMENT= Pretty Quick Image Viewer
LICENSE= GPLv2
OPTIONS= SORTING "Enable sorting of loaded files" on \
COMPOSITE "Enable support for transparent windows" on \
FADING "Enable support for fading images" on \
COMMANDS "Enable support for external command execution" on \
CONFIG "Enable support for a configuration file" on \
ANIMATIONS "Enable support for animations" on
USE_BZIP2= yes
USE_GNOME= gtk20
CFLAGS+= -DNO_INOTIFY -DBINARY_NAME=\"${PORTNAME}\"
MAN1= pqiv.1
PORTDOCS= README
PLIST_FILES= bin/pqiv
CPPFLAGS= `${pkgconfig_DETECT} --cflags gtk+-2.0 gthread-2.0`
LDFLAGS= `${pkgconfig_DETECT} --libs gtk+-2.0 gthread-2.0`
.include <bsd.port.pre.mk>
.if defined(WITHOUT_SORTING)
CFLAGS+= -DNO_SORTING
SORTFILE= # Empty
.else
SORTFILE= lib/strnatcmp.c
.endif
.if defined(WITHOUT_COMPOSITE)
CFLAGS+= -DNO_COMPOSITING
.endif
.if defined(WITHOUT_FADING)
CFLAGS+= -DNO_FADING
.endif
.if defined(WITHOUT_COMMANDS)
CFLAGS+= -DNO_COMMANDS
.endif
.if defined(WITHOUT_CONFIG)
CFLAGS+= -DNO_CONFIG_FILE
.endif
.if defined(WITHOUT_ANIMATIONS)
CFLAGS+= -DNO_ANIMATIONS
.endif
post-patch:
@(cd ${PATCH_WRKSRC} && ${SED} 's|$$PACKAGE_VERSION|${PORTVERSION}| ; \
s|$$BINARY_NAME|${PORTNAME}|' < pqiv.1.template > pqiv.1)
do-build:
(cd ${BUILD_WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} ${SORTFILE} pqiv.c \
-o pqiv ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>