1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

- Respect DESTDIR

- Specify and use DATADIR

PR:		ports/101935
Submitted by:	Gea-Suan Lin <gslin(at)gslin.org>
Approved by:	krion (mentor)
This commit is contained in:
Martin Wilke 2006-08-15 15:08:39 +00:00
parent a8497d78e4
commit d919928978
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170714
2 changed files with 25 additions and 23 deletions

View File

@ -26,13 +26,14 @@ BUILD_DEPENDS= xmkmf:${X_IMAKE_PORT}
VFLIB_VERSION= 2.25.1
PLIST_SUB= VFLIB_VERSION=${VFLIB_VERSION}
DATADIR= ${TARGETDIR}/share/VFlib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-freetype \
--with-freetype-includedir=${LOCALBASE}/include/freetype1/freetype \
--with-freetype-libdir=${LOCALBASE}/lib
USE_FREETYPE= yes
USE_XLIB= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-freetype \
--with-freetype-includedir=${PREFIX}/include/freetype1/freetype \
--with-freetype-libdir=${PREFIX}/lib
.include <bsd.port.pre.mk>
@ -44,13 +45,13 @@ post-patch:
pre-install:
@(cd ${WRKSRC}/tools; \
${INSTALL_SCRIPT} fmtest disol kban vfperf vftest ${PREFIX}/bin)
${INSTALL_SCRIPT} fmtest disol kban vfperf vftest ${TARGETDIR}/bin)
@(cd ${WRKSRC}; \
${MKDIR} ${PREFIX}/share/VFlib/${VFLIB_VERSION} ;\
${CP} COPYING COPYING.LIB README.txt.JP_EUC \
${PREFIX}/share/VFlib/${VFLIB_VERSION})
${MKDIR} ${DATADIR}/${VFLIB_VERSION} ;\
${CP} COPYING COPYING.LIB README.txt.JP_EUC \
${DATADIR}/${VFLIB_VERSION})
post-install:
${MV} ${PREFIX}/share/VFlib/${VFLIB_VERSION}/VF.h ${PREFIX}/include
${MV} ${DATADIR}/${VFLIB_VERSION}/VF.h ${TARGETDIR}/include
.include <bsd.port.post.mk>

View File

@ -1,3 +1,16 @@
@comment $FreeBSD$
%%DATADIR%%/%%VFLIB_VERSION%%/COPYING
%%DATADIR%%/%%VFLIB_VERSION%%/COPYING.LIB
%%DATADIR%%/%%VFLIB_VERSION%%/QA-english.tex
%%DATADIR%%/%%VFLIB_VERSION%%/QA.txt
%%DATADIR%%/%%VFLIB_VERSION%%/README.txt.JP_EUC
%%DATADIR%%/%%VFLIB_VERSION%%/man.dvi
%%DATADIR%%/%%VFLIB_VERSION%%/man.ps
%%DATADIR%%/%%VFLIB_VERSION%%/vfontcap
%%DATADIR%%/%%VFLIB_VERSION%%/vfontcap.ORG
%%DATADIR%%/%%VFLIB_VERSION%%/vfontcap.bdf
%%DATADIR%%/%%VFLIB_VERSION%%/vfontcap.comp2
%%DATADIR%%/%%VFLIB_VERSION%%/vfontcap.mgp
bin/VFlib2-config
bin/bdfindex
bin/disol
@ -10,20 +23,8 @@ bin/vfperf
bin/vftest
include/VF.h
lib/libVFlib2.so.24.1
lib/libVFlib2.la
@exec /bin/ln -fs %D/%F %D/lib/libVFlib2.so
@unexec /bin/rm -f %D/lib/libVFlib2.so
lib/libVFlib2.la
share/VFlib/%%VFLIB_VERSION%%/README.txt.JP_EUC
share/VFlib/%%VFLIB_VERSION%%/COPYING.LIB
share/VFlib/%%VFLIB_VERSION%%/COPYING
share/VFlib/%%VFLIB_VERSION%%/vfontcap.mgp
share/VFlib/%%VFLIB_VERSION%%/vfontcap.comp2
share/VFlib/%%VFLIB_VERSION%%/vfontcap.bdf
share/VFlib/%%VFLIB_VERSION%%/vfontcap.ORG
share/VFlib/%%VFLIB_VERSION%%/vfontcap
share/VFlib/%%VFLIB_VERSION%%/QA.txt
share/VFlib/%%VFLIB_VERSION%%/QA-english.tex
share/VFlib/%%VFLIB_VERSION%%/man.ps
share/VFlib/%%VFLIB_VERSION%%/man.dvi
@dirrm share/VFlib/%%VFLIB_VERSION%%
@dirrm share/VFlib
@dirrm %%DATADIR%%/%%VFLIB_VERSION%%
@dirrm %%DATADIR%%