1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

${PREFIX}/share/${PORTNAME} --> ${DATADIR}

This commit is contained in:
Maxim Sobolev 2001-07-10 13:54:22 +00:00
parent 0802ab78d3
commit ec7b561464
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45011
14 changed files with 87 additions and 93 deletions

View File

@ -20,7 +20,7 @@ ALL_TARGET= # empty
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/clustalw ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/clustalw_help ${PREFIX}/share/${PORTNAME}
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/clustalw_help ${DATADIR}
.include <bsd.port.mk>

View File

@ -19,12 +19,12 @@ USE_GMAKE= yes
INSTALLS_SHLIB= yes
post-install:
${MKDIR} ${PREFIX}/share/${PORTNAME}
${MKDIR} ${DATADIR}
.if !defined(NOPORTDOCS)
.for f in dotconf-api.txt dotconf-features.txt
@${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/${PORTNAME}
@${INSTALL_DATA} ${WRKSRC}/doc/$f ${DATADIR}
.endfor
.endif
${CP} -R ${WRKSRC}/examples ${PREFIX}/share/${PORTNAME}
${CP} -R ${WRKSRC}/examples ${DATADIR}
.include <bsd.port.mk>

View File

@ -32,30 +32,29 @@ CONFIGURE_ARGS+=--with-tcl-inc="${LOCALBASE}/include/tcl8.2" \
CFLAGS+= -L${X11BASE}/lib
WORKDATA= ${WRKDIR}/${PORTNAME}-data-${PORTVERSION}
SHAREDIR= ${PREFIX}/share/${PORTNAME}
COURSEDIRS= 1 2 3 4 5 6 7 8 9 10 11
post-install:
${MKDIR} ${SHAREDIR}/courses
${MKDIR} ${DATADIR}/courses
.for i in ${COURSEDIRS}
${MKDIR} ${SHAREDIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${SHAREDIR}/courses/${i}/
${MKDIR} ${DATADIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${DATADIR}/courses/${i}/
.endfor
${MKDIR} ${SHAREDIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${SHAREDIR}/
${MKDIR} ${DATADIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${DATADIR}/
.include <bsd.port.mk>

View File

@ -32,30 +32,29 @@ CONFIGURE_ARGS+=--with-tcl-inc="${LOCALBASE}/include/tcl8.2" \
CFLAGS+= -L${X11BASE}/lib
WORKDATA= ${WRKDIR}/${PORTNAME}-data-${PORTVERSION}
SHAREDIR= ${PREFIX}/share/${PORTNAME}
COURSEDIRS= 1 2 3 4 5 6 7 8 9 10 11
post-install:
${MKDIR} ${SHAREDIR}/courses
${MKDIR} ${DATADIR}/courses
.for i in ${COURSEDIRS}
${MKDIR} ${SHAREDIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${SHAREDIR}/courses/${i}/
${MKDIR} ${DATADIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${DATADIR}/courses/${i}/
.endfor
${MKDIR} ${SHAREDIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${SHAREDIR}/
${MKDIR} ${DATADIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${DATADIR}/
.include <bsd.port.mk>

View File

@ -32,30 +32,29 @@ CONFIGURE_ARGS+=--with-tcl-inc="${LOCALBASE}/include/tcl8.2" \
CFLAGS+= -L${X11BASE}/lib
WORKDATA= ${WRKDIR}/${PORTNAME}-data-${PORTVERSION}
SHAREDIR= ${PREFIX}/share/${PORTNAME}
COURSEDIRS= 1 2 3 4 5 6 7 8 9 10 11
post-install:
${MKDIR} ${SHAREDIR}/courses
${MKDIR} ${DATADIR}/courses
.for i in ${COURSEDIRS}
${MKDIR} ${SHAREDIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${SHAREDIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${SHAREDIR}/courses/${i}/
${MKDIR} ${DATADIR}/courses/${i}
${INSTALL_DATA} ${WORKDATA}/courses/${i}/course.tcl ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/elev.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/terrain.rgb ${DATADIR}/courses/${i}/
${INSTALL_DATA} ${WORKDATA}/courses/${i}/trees.rgb ${DATADIR}/courses/${i}/
.endfor
${MKDIR} ${SHAREDIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${SHAREDIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${SHAREDIR}/
${MKDIR} ${DATADIR}/courses/common
${INSTALL_DATA} ${WORKDATA}/courses/common/background1.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background2.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/background3.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/ice.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/rock.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/snow.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/standard_light.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree.rgb ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tree_polyhedron.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_moonwalk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/courses/common/tux_walk.tcl ${DATADIR}/courses/common/
${INSTALL_DATA} ${WORKDATA}/tux.tcl ${DATADIR}/
.include <bsd.port.mk>

View File

@ -21,9 +21,9 @@ NO_BUILD= yes
PLIST_SUB+= VERSION="${PORTVERSION}"
do-install:
@if [ ! -d ${PREFIX}/share/${DISTNAME} ]; then \
${MKDIR} ${PREFIX}/share/${PORTNAME}-${PORTVERSION}; \
@if [ ! -d ${DATADIR}-${PORTVERSION} ]; then \
${MKDIR} ${DATADIR}-${PORTVERSION}; \
fi
${CP} -R ${WRKSRC}/* ${PREFIX}/share/${PORTNAME}-${PORTVERSION}/
${CP} -R ${WRKSRC}/* ${DATADIR}-${PORTVERSION}/
.include <bsd.port.mk>

View File

@ -19,10 +19,10 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}-pl${PORTVERSION:E}
do-install:
@if [ -d ${PREFIX}/share/${PORTNAME} ]; then ${RM} -rf ${PREFIX}/share/${PORTNAME}; fi
${MKDIR} ${PREFIX}/share/${PORTNAME}
${CP} -pR ${WRKSRC}/ ${PREFIX}/share/${PORTNAME}
${CHOWN} -R 0:0 ${PREFIX}/share/${PORTNAME}
@if [ -d ${DATADIR} ]; then ${RM} -rf ${DATADIR}; fi
${MKDIR} ${DATADIR}
${CP} -pR ${WRKSRC}/ ${DATADIR}
${CHOWN} -R 0:0 ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/hns-setup ${PREFIX}/bin/hns-setup
${INSTALL_SCRIPT} ${WRKSRC}/contrib/todayhns/todayhns ${PREFIX}/bin/todayhns

View File

@ -42,14 +42,12 @@ INFO_DIR= ${PREFIX}/info
EMACS_FILES= gforth.el
EMACS_DIR= ${PREFIX}/share/emacs/site-lisp
SHARE_DIR= ${PREFIX}/share/${PORTNAME}
EMPTY_FILES= siteinit.fs
FORTH_DIR= ${SHARE_DIR}/site-forth
FORTH_DIR= ${DATADIR}/site-forth
EMPTY_DIRS= 4stack 6502 8086 avr c165 generic h8 \
hppa ia64 m68k misc power shboom sparc
ARCH_DIR= ${SHARE_DIR}/${PORTVERSION}/arch
ARCH_DIR= ${DATADIR}/${PORTVERSION}/arch
#
# Post-extract

View File

@ -57,9 +57,9 @@ post-install:
${CP} -f ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}; \
${CP} -f ${WRKSRC}/scripts/README.kinzler ${PREFIX}/share/doc/${PORTNAME}; \
${CP} -f ${WRKSRC}/scripts/from.allrc-eg ${PREFIX}/share/doc/${PORTNAME}; \
${MKDIR} ${PREFIX}/share/${PORTNAME}/lib; \
${MKDIR} ${DATADIR}/lib; \
${ECHO} ";# See ${PREFIX}/share/doc/${PORTNAME}/from.allrc-eg for an example" \
> ${PREFIX}/share/${PORTNAME}/lib/allrc; \
> ${DATADIR}/lib/allrc; \
fi
.endif

View File

@ -36,9 +36,9 @@ post-patch:
@${PERL} -pi -e "s|[\ \t]T_USER| T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
@${MKDIR} ${PREFIX}/share/${PORTNAME}
@${MKDIR} ${DATADIR}
.for i in example.conf example.dictrc example.site example2.conf example3.conf
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR}
.endfor
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh

View File

@ -23,7 +23,7 @@ USE_PERL5= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl=${PERL} \
--disable-gif \
--libdir=${PREFIX}/share/${PORTNAME}
--libdir=${DATADIR}
post-install:
.if !defined(NOPORTDOCS)

View File

@ -27,9 +27,8 @@ MAN3= Apache::MP3.3 \
Apache::MP3::Resample.3 \
Apache::MP3::Sorted.3
PKGDATADIR= ${PREFIX}/share/${PORTNAME}
post-install:
${MKDIR} ${PKGDATADIR}
${INSTALL_DATA} ${WRKSRC}/apache_mp3/* ${PKGDATADIR}
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/apache_mp3/* ${DATADIR}
.include <bsd.port.mk>

View File

@ -38,24 +38,24 @@ do-build:
FILESDIR="${FILESDIR}" -f "${FILESDIR}/Makefile.lib"
pre-install:
${MKDIR} ${LOCALBASE}/tclhttpd/custom
${MKDIR} ${PREFIX}/tclhttpd/custom
post-install:
test -e ${RCD} || ${SED} \
"s%COMMAND_LINE%${LOCALBASE}/bin/tclsh${TCL_DVER} ${PREFIX}/bin/httpd.tcl%" \
< ${FILESDIR}/tclhttpd.sh > ${RCD}
${CHOWN} -R nobody ${LOCALBASE}/share/${PORTNAME}${PORTVERSION}
${CHOWN} -R nobody ${DATADIR}${PORTVERSION}
${CHMOD} +x ${RCD}
${INSTALL_DATA} ${WRKSRC}/${SHLIB_NAME} \
${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
${PREFIX}/lib/${PORTNAME}${PORTVERSION}/${SHLIB_NAME}
${INSTALL_SCRIPT} ${WRKSRC}/bin/httpd.tcl \
${WRKSRC}/bin/httpdthread.tcl ${LOCALBASE}/bin/
${WRKSRC}/bin/httpdthread.tcl ${PREFIX}/bin/
${SED} 's%@VER@%${PORTVERSION}%g' < ${WRKSRC}/bin/tclhttpd.rc \
> ${LOCALBASE}/etc/tclhttpd.rc.default
cd ${LOCALBASE}/etc; test -e tclhttpd.rc || \
> ${PREFIX}/etc/tclhttpd.rc.default
cd ${PREFIX}/etc; test -e tclhttpd.rc || \
${CP} -p tclhttpd.rc.default tclhttpd.rc
${SED} 's%@LIB@%${SHLIB_NAME}%g' < \
${FILESDIR}/pkgIndex.tcl >> \
${LOCALBASE}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
${PREFIX}/lib/${PORTNAME}${PORTVERSION}/pkgIndex.tcl
.include <bsd.port.post.mk>

View File

@ -26,9 +26,9 @@ MAN1= Xdialog.1
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${PREFIX}/share/${PORTNAME}
${MKDIR} ${DATADIR}
@(cd ${WRKSRC}/doc ; \
${CP} *.html *.png ${PREFIX}/share/${PORTNAME})
${CP} *.html *.png ${DATADIR})
.endif
.include <bsd.port.mk>