mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
- fix PLIST
This commit is contained in:
parent
eb6f9db72d
commit
571a685031
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129619
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user