aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-02-23 18:57:44 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-02-23 18:57:44 +0000
commit571a68503131d4037ff08ba7c9dc5b9603e87b5f (patch)
tree21d677a84386e963cd1ddab45859789cfc36953c /graphics
parenteb6f9db72d17ed2aad147b49bd5b11b50c4cf39f (diff)
downloadports-571a68503131d4037ff08ba7c9dc5b9603e87b5f.tar.gz
ports-571a68503131d4037ff08ba7c9dc5b9603e87b5f.zip
- fix PLIST
Notes
Notes: svn path=/head/; revision=129619
Diffstat (limited to 'graphics')
-rw-r--r--graphics/djvulibre/Makefile24
-rw-r--r--graphics/djvulibre/pkg-plist10
2 files changed, 23 insertions, 11 deletions
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile
index e124ca2eebbe..330bc54a7438 100644
--- a/graphics/djvulibre/Makefile
+++ b/graphics/djvulibre/Makefile
@@ -16,7 +16,7 @@ COMMENT= DjVu viewers, encoders, browser plugin, and utilities
BROKEN= Incomplete pkg-plist
-.ifndef WITHOUT_X11
+.if !defined(WITHOUT_X11)
USE_X_PREFIX= yes
USE_QT_VER= 3
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
@@ -29,13 +29,14 @@ USE_ICONV= yes
USE_PERL5_BUILD=yes
HAS_CONFIGURE= yes
INSTALLS_SHLIB= yes
+DATADIR= ${PREFIX}/share/djvu
CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \
JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
TIFF_CFLAGS="-I${LOCALBASE}/include" \
TIFF_LIBS="-L${LOCALBASE}/lib -ltiff"
CONFIGURE_ARGS= --enable-threads=pthread --enable-shared --prefix="${PREFIX}"
-.ifndef WITHOUT_X11
+.if !defined(WITHOUT_X11)
CONFIGURE_ENV+= CXX=${CXX} \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
@@ -53,28 +54,39 @@ pre-everything::
.if defined(LOCALBASE) && ${LOCALBASE} != "/usr/local"
pre-configure:
- ${PERL} -pi -e 's,/usr/local,${LOCALBASE},g' `${FIND} ${WRKSRC} \
+ ${PERL5} -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,,; ' \
+ ${PERL5} -pi -e 's,-O3,,;' -e 's,-mcpu=i386,,; ' \
-e 's,^(OPTS =.*),\1 ${CFLAGS},' \
${WRKSRC}/*/Makefile ${WRKSRC}/*/*/Makefile
.endif
+PORTDOCS= djvu2spec.djvu djvu3changes.txt lizard2002.djvu
+MANLANG="" ja
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
-.ifndef WITHOUT_X11
+
+MAN1EXTRA= djvutoxml.1 djvuxml.1 djvuxmlparser.1 djvudigital.1
+MAN1+= ${MAN1EXTRA}
+
+.if !defined(WITHOUT_X11)
MAN1+= djview.1 nsdejavu.1
PLIST_SUB+= X11=''
.else
PLIST_SUB+= X11='@comment '
.endif
-.ifndef NOPORTDOCS
post-install:
+.for man1 in ${MAN1EXTRA}
+.for manlang in ${MANLANG}
+ ${TOUCH} ${MAN1PREFIX}/man/${manlang}/man1/${man1}
+.endfor
+.endfor
+.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
diff --git a/graphics/djvulibre/pkg-plist b/graphics/djvulibre/pkg-plist
index 44775608637e..a84550014fab 100644
--- a/graphics/djvulibre/pkg-plist
+++ b/graphics/djvulibre/pkg-plist
@@ -42,10 +42,6 @@ share/djvu/osi/zh/messages.xml
share/djvu/pubtext/DjVuMessages.dtd
share/djvu/pubtext/DjVuOCR.dtd
share/djvu/pubtext/DjVuXML-s.dtd
-%%PORTDOCS%%%%DOCSDIR%%/djvu2spec.djvu
-%%PORTDOCS%%%%DOCSDIR%%/djvu3changes.txt
-%%PORTDOCS%%%%DOCSDIR%%/lizard2002.djvu
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm share/djvu/pubtext
@dirrm share/djvu/osi/zh
@dirrm share/djvu/osi/ja
@@ -54,4 +50,8 @@ share/djvu/pubtext/DjVuXML-s.dtd
@dirrm share/djvu/osi/de
@dirrm share/djvu/osi
@dirrm share/djvu
-
+@unexec rmdir %D/man/fr/man1 2>/dev/null || true
+@unexec rmdir %D/man/fr 2>/dev/null || true
+@unexec rmdir %D/man/de/man1 2>/dev/null || true
+@unexec rmdir %D/man/de 2>/dev/null || true
+@unexec rmdir %D/lib/browser_plugins 2>/dev/null || true