1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Leverage the new USE_LDCONFIG mechanism instead of our original, more

home-grown approach.

PR:		95757
Submitted by:	Alex Kozlov <spam@rm-rf.kiev.ua>
Reviewed by:	flz
This commit is contained in:
Gerald Pfeifer 2006-04-16 20:09:35 +00:00
parent 4f912149f4
commit ba0c314005
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159742
6 changed files with 8 additions and 40 deletions

View File

@ -25,6 +25,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib LIBS=-Wl,-rpath,${PREFIX}/lib/wine
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/wine
USE_LDCONFIG= ${PREFIX}/lib/wine
MAN1= widl.1 wine.1 winebuild.1 winedbg.1 winedump.1 winegcc.1 \
winemaker.1 wineserver.1 wmc.1 wrc.1
ONLY_FOR_ARCHS= i386
@ -34,10 +35,11 @@ USE_GMAKE= yes
USE_GL= yes
USE_XPM= yes
SUB_FILES= pkg-message wine.sh
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
.if ${OSVERSION} < 503000
IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with threading support)
@ -46,8 +48,7 @@ IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with t
pre-build:
cd ${WRKSRC} && make depend
post-install:
-@${MKDIR} ${PREFIX}/etc/rc.d
post-install: install-ldconfig-file
${RM} ${PREFIX}/man/man1/wineg++.1
.if !defined(NOPORTDOCS)
-@${MKDIR} ${DOCSDIR}
@ -60,7 +61,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${DOCSDIR}/README.winedump
.endif
@${INSTALL_SCRIPT} ${WRKSRC}/tools/bug_report.pl ${PREFIX}/lib/wine
@${INSTALL_SCRIPT} ${WRKDIR}/wine.sh ${PREFIX}/etc/rc.d/000.wine.sh
@${ECHO}
@${CAT} ${PKGMESSAGE}

View File

@ -1,15 +0,0 @@
#!/bin/sh
case "$1" in
start)
/sbin/ldconfig -m %%PREFIX%%/lib/wine
;;
stop)
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -30,7 +30,6 @@ bin/wineshelllink
bin/winhelp
bin/wmc
bin/wrc
etc/rc.d/000.wine.sh
include/wine/debug.h
include/wine/exception.h
include/wine/itss.h

View File

@ -25,6 +25,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib LIBS=-Wl,-rpath,${PREFIX}/lib/wine
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/lib/wine
USE_LDCONFIG= ${PREFIX}/lib/wine
MAN1= widl.1 wine.1 winebuild.1 winedbg.1 winedump.1 winegcc.1 \
winemaker.1 wineserver.1 wmc.1 wrc.1
ONLY_FOR_ARCHS= i386
@ -34,10 +35,11 @@ USE_GMAKE= yes
USE_GL= yes
USE_XPM= yes
SUB_FILES= pkg-message wine.sh
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"
.if ${OSVERSION} < 503000
IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with threading support)
@ -46,8 +48,7 @@ IGNORE= fails to work on versions of FreeBSD before 5.3 (due to problems with t
pre-build:
cd ${WRKSRC} && make depend
post-install:
-@${MKDIR} ${PREFIX}/etc/rc.d
post-install: install-ldconfig-file
${RM} ${PREFIX}/man/man1/wineg++.1
.if !defined(NOPORTDOCS)
-@${MKDIR} ${DOCSDIR}
@ -60,7 +61,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${DOCSDIR}/README.winedump
.endif
@${INSTALL_SCRIPT} ${WRKSRC}/tools/bug_report.pl ${PREFIX}/lib/wine
@${INSTALL_SCRIPT} ${WRKDIR}/wine.sh ${PREFIX}/etc/rc.d/000.wine.sh
@${ECHO}
@${CAT} ${PKGMESSAGE}

View File

@ -1,15 +0,0 @@
#!/bin/sh
case "$1" in
start)
/sbin/ldconfig -m %%PREFIX%%/lib/wine
;;
stop)
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -30,7 +30,6 @@ bin/wineshelllink
bin/winhelp
bin/wmc
bin/wrc
etc/rc.d/000.wine.sh
include/wine/debug.h
include/wine/exception.h
include/wine/itss.h