summaryrefslogtreecommitdiff
path: root/graphics/zathura
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2010-07-23 22:05:10 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2010-07-23 22:05:10 +0000
commit71949ea86ccbf02de35f0fda80b5d73c829ba4fd (patch)
tree25f68f98eed4a1733e258b87069c5439025d4ea5 /graphics/zathura
parentUpdate to 4.3 (diff)
- drop USE_GMAKE
- respect DEBUG_FLAGS rather than DFLAGS, currently any flag (e.g. `-ggdb3') in DEBUG_FLAGS or CFLAGS is being overriden by DFLAGS' `-g' - use PTHREAD_LIBS instead of -lpthread - no need to specify -lc when no -nostdlib is used - make build target verbose, options target doesn't show what flags are used when linking - make install target verbose, so the user know what's being installed - use CFLAGS when linking, too; makes things like -flto in CFLAGS work - add extra tab to MAN1 (cosmetic) PR: ports/148607 Submitted by: Anonymous <swell.k at gmail.com> Approved by: Quentin Stievenart (maintainer)
Notes
Notes: svn path=/head/; revision=258120
Diffstat (limited to 'graphics/zathura')
-rw-r--r--graphics/zathura/Makefile23
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>