aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/djvulibre/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/djvulibre/Makefile')
-rw-r--r--graphics/djvulibre/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile
index 7a7fc6bf5114..884aa4e3c72c 100644
--- a/graphics/djvulibre/Makefile
+++ b/graphics/djvulibre/Makefile
@@ -7,7 +7,8 @@
PORTNAME= djvulibre
PORTVERSION= 3.5.8
-CATEGORIES= graphics
+PORTREVISION= 1
+CATEGORIES= graphics www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= djvu
@@ -29,22 +30,32 @@ CONFIGURE_ENV= JPEG_CFLAGS=-I"${LOCALBASE}/include" \
CONFIGURE_ARGS= --enable-threads=posix --enable-shared --prefix="${PREFIX}"
.ifndef WITHOUT_X11
-CONFIGURE_ENV+= CXX=${CXX} PTHREAD_CFLAGS=-pthread PTHREAD_LIBS=-pthread \
+CONFIGURE_ENV+= CXX=${CXX} \
+ PTHREAD_CFLAGS=-pthread \
+ PTHREAD_LIBS=-pthread \
QTLIBS="-L${X11BASE}/lib -lqt-mt"
.else
CONFIGURE_ARGS+=--disable-djview
.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+pre-everything:
+ @${ECHO_MSG} "You can enable additional compilation optimizations"
+ @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+.endif
+
.if defined(LOCALBASE) && ${LOCALBASE} != "/usr/local"
pre-configure:
${PERL} -pi -e 's,/usr/local,${LOCALBASE},g' `find ${WRKSRC} \
-type f -print0 | xargs -0 ${GREP} -Fl --mmap /usr/local`
.endif
+.if !defined(WITH_OPTIMIZED_CFLAGS)
post-configure:
${PERL} -pi -e 's,-O3,,;' -e 's,-mcpu=i386,,; ' \
-e 's,^(OPTS =.*),\1 ${CFLAGS},' \
${WRKSRC}/*/Makefile ${WRKSRC}/*/*/Makefile
+.endif
MAN1= bzz.1 c44.1 cjb2.1 cpaldjvu.1 csepdjvu.1 ddjvu.1 djvm.1 djvmcvt.1 djvu.1 \
djvudump.1 djvuextract.1 djvumake.1 djvups.1 djvused.1 djvuserve.1 djvutxt.1