diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2010-07-23 22:05:10 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2010-07-23 22:05:10 +0000 |
commit | 71949ea86ccbf02de35f0fda80b5d73c829ba4fd (patch) | |
tree | 25f68f98eed4a1733e258b87069c5439025d4ea5 /graphics/zathura | |
parent | 601a12bbe7e8ecb7a676802539816d06e2c97d4d (diff) |
Notes
Diffstat (limited to 'graphics/zathura')
-rw-r--r-- | graphics/zathura/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/graphics/zathura/Makefile b/graphics/zathura/Makefile index ca05d2d52b8f..4e08a176d93f 100644 --- a/graphics/zathura/Makefile +++ b/graphics/zathura/Makefile @@ -16,13 +16,28 @@ COMMENT= Customizable lightweight pdf viewer LIB_DEPENDS= poppler-glib.4:${PORTSDIR}/graphics/poppler-gtk \ cairo.2:${PORTSDIR}/graphics/cairo -USE_GMAKE= yes USE_GNOME= glib20 gtk20 -MAN1= zathura.1 + +MAN1= zathura.1 MANCOMPRESSED= no PLIST_FILES= bin/zathura -post-patch: - @${REINPLACE_CMD} -e 's|man1|man/man1|g' ${WRKSRC}/Makefile +post-patch: .SILENT + ${REINPLACE_CMD} -e 's|man1|man/man1|g' \ + -e '/CC/s/-s[[:space:]]/${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/@//' \ + -e '/^all:/s/options//' \ + -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> |