freebsd-ports/graphics/zathura/Makefile
Pav Lucistnik a3a9343604 - Update to 0.0.8.1
PR:		ports/150077
Submitted by:	Anonymous <swell.k@gmail.com>
Approved by:	Quentin Stievenart <acieroid@awesom.eu> (maintainer)
2010-09-02 13:14:00 +00:00

44 lines
1.2 KiB
Makefile

# New ports collection makefile for: zathura
# Date created: 29 June 2010
# Whom: Quentin Stievenart <acieroid@awesom.eu>
#
# $FreeBSD$
#
PORTNAME= zathura
PORTVERSION= 0.0.8.1
CATEGORIES= graphics print
MASTER_SITES= http://pwmt.org/attachments/download/10/
MAINTAINER= acieroid@awesom.eu
COMMENT= Customizable lightweight pdf viewer
LIB_DEPENDS= poppler-glib.4:${PORTSDIR}/graphics/poppler-gtk \
cairo.2:${PORTSDIR}/graphics/cairo
USE_GNOME= glib20 gtk20
MAN1= zathura.1
MANCOMPRESSED= no
PLIST_FILES= bin/zathura
post-patch: .SILENT
${REINPLACE_CMD} -e 's|man1|man/man1|g' \
-e '/CC/s/$${SFLAGS}/${STRIP} /' \
-e '/CFLAGS/!s/$${LDFLAGS}/$${CFLAGS} &/' \
-e 's/{DFLAGS/{DEBUG_FLAGS/g' \
-e 's/755/${BINMODE}/' \
-e 's/644/${MANMODE}/' \
-e '/echo[[:space:]]CC/d' \
-e '/echo/!s/^\([[:space:]]*\)@/\1/' \
-e '/^all:/s/options//' \
-e 's/cp[[:space:]]$$</cp $$>/' \
-e 's/\(include\)[[:space:]]\(.*\)/.\1 "\2"/' \
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|/usr/include|${LOCALBASE}/include|' \
-e 's/-lpthread/${PTHREAD_LIBS}/' \
-e 's/-lc//' \
-e 's/$$(shell[[:space:]]\(.*\))/`\1`/' \
${WRKSRC}/config.mk
.include <bsd.port.mk>