aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/wine
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2006-04-17 04:09:35 +0800
committergerald <gerald@FreeBSD.org>2006-04-17 04:09:35 +0800
commitf9ffc6d2ec5d92bea6292d264d1a68f0baee63be (patch)
treea1b002d2aad8a0e640d859ae2062c8644df295e4 /emulators/wine
parent1dad24c848ace8c2c52f701a9ddd54c546d5f3ea (diff)
downloadfreebsd-ports-gnome-f9ffc6d2ec5d92bea6292d264d1a68f0baee63be.tar.gz
freebsd-ports-gnome-f9ffc6d2ec5d92bea6292d264d1a68f0baee63be.tar.zst
freebsd-ports-gnome-f9ffc6d2ec5d92bea6292d264d1a68f0baee63be.zip
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
Diffstat (limited to 'emulators/wine')
-rw-r--r--emulators/wine/Makefile8
-rw-r--r--emulators/wine/files/wine.sh.in15
-rw-r--r--emulators/wine/pkg-plist1
3 files changed, 4 insertions, 20 deletions
diff --git a/emulators/wine/Makefile b/emulators/wine/Makefile
index aeb44041d07b..bfa2a783a79a 100644
--- a/emulators/wine/Makefile
+++ b/emulators/wine/Makefile
@@ -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}
diff --git a/emulators/wine/files/wine.sh.in b/emulators/wine/files/wine.sh.in
deleted file mode 100644
index fe67ceb5d4e2..000000000000
--- a/emulators/wine/files/wine.sh.in
+++ /dev/null
@@ -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
diff --git a/emulators/wine/pkg-plist b/emulators/wine/pkg-plist
index 2456526e9b89..0b8cb3bef410 100644
--- a/emulators/wine/pkg-plist
+++ b/emulators/wine/pkg-plist
@@ -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