2003-11-20 17:15:23 +01:00
|
|
|
# New ports collection makefile for: linuxpluginwrapper
|
|
|
|
# Date Created: 2003-06-15
|
|
|
|
# Whom: nork@FreeBSD.org
|
2002-11-13 20:35:14 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-11-20 17:15:23 +01:00
|
|
|
PORTNAME= linuxpluginwrapper
|
2004-02-08 04:49:10 +01:00
|
|
|
PORTVERSION= 20040208
|
2004-02-09 02:38:30 +01:00
|
|
|
PORTREVISION= 1
|
2002-11-13 20:35:14 +01:00
|
|
|
CATEGORIES= www linux
|
2003-11-21 18:31:30 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://people.FreeBSD.org/~nork/distfiles/
|
2003-11-20 17:15:23 +01:00
|
|
|
MASTER_SITE_SUBDIR= nork
|
2002-11-13 20:35:14 +01:00
|
|
|
|
2003-02-22 17:59:06 +01:00
|
|
|
MAINTAINER= nork@FreeBSD.org
|
2003-12-27 22:57:09 +01:00
|
|
|
COMMENT= A wrapper allowing use of linux-plugins with native applications
|
2002-11-13 20:35:14 +01:00
|
|
|
|
2003-11-20 17:15:23 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
LIB_DEPENDS= lthread.${LTHREAD_MAJOR}:${PORTSDIR}/devel/linuxthreads
|
2004-01-06 17:38:13 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/Acrobat5/Browsers/intellinux/nppdf.so:${PORTSDIR}/print/acroread5 \
|
|
|
|
${LOCALBASE}/lib/linux-flashplugin6/libflashplayer.so:${PORTSDIR}/www/linux-flashplugin6
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
2002-11-13 20:35:14 +01:00
|
|
|
|
2003-02-03 14:56:53 +01:00
|
|
|
USE_XLIB= yes
|
2004-02-09 02:37:35 +01:00
|
|
|
USE_MOTIF= yes
|
2002-11-13 20:35:14 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-11-20 17:15:23 +01:00
|
|
|
CONFLICTS= flashpluginwrapper-*
|
2002-11-13 20:35:14 +01:00
|
|
|
|
2003-11-20 17:15:23 +01:00
|
|
|
.if ${OSVERSION} >= 500035 && defined(LINUXTHREADS_WRAP_API)
|
|
|
|
LTHREAD_MAJOR= 5
|
|
|
|
.elif ${OSVERSION} >= 500035
|
|
|
|
LTHREAD_MAJOR= 3
|
|
|
|
.elif ${OSVERSION} < 500035 && defined(LINUXTHREADS_WRAP_API)
|
|
|
|
LTHREAD_MAJOR= 4
|
|
|
|
.elif ${OSVERSION} < 500035
|
|
|
|
LTHREAD_MAJOR= 2
|
|
|
|
.endif
|
2002-11-13 20:35:14 +01:00
|
|
|
|
2003-11-20 17:15:23 +01:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD5.x
|
|
|
|
.else
|
|
|
|
LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD4.x
|
|
|
|
.endif
|
|
|
|
|
2004-01-06 17:38:13 +01:00
|
|
|
.if ${OSVERSION} < 501105
|
2003-11-20 17:15:23 +01:00
|
|
|
RTLD= /usr/libexec/ld-elf.so.1
|
2004-01-06 17:38:13 +01:00
|
|
|
.else
|
|
|
|
RTLD= /libexec/ld-elf.so.1
|
2003-11-20 17:15:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CFLAGS+= -DDEBUG=1
|
|
|
|
.endif
|
|
|
|
|
2004-02-04 07:46:14 +01:00
|
|
|
.if (${OSVERSION} < 490102 || ${OSVERSION} >= 500000 && ${OSVERSION} < 501107) && !defined(PACKAGE_BUILDING)
|
2003-11-20 17:15:23 +01:00
|
|
|
pre-everything::
|
2004-02-04 07:46:14 +01:00
|
|
|
@if ! strings ${RTLD} | ${GREP} libmap.conf > /dev/null 2>&1; then \
|
2003-11-20 17:15:23 +01:00
|
|
|
${ECHO_MSG} 'Please enable libmap.conf(5) feature for rtld(1).'; \
|
2003-12-28 06:32:26 +01:00
|
|
|
${ECHO_MSG} '4-stable user:'; \
|
|
|
|
${ECHO_MSG} ' You can get a following patch.'; \
|
|
|
|
${ECHO_MSG} ' http://people.FreeBSD.org/~nork/libmap_4stable.diff'; \
|
2004-01-13 17:27:08 +01:00
|
|
|
${ECHO_MSG} ' Please apply on /usr/src and make install on /usr/src/libexec/rtld-elf:'; \
|
|
|
|
${ECHO_MSG} ' # cd /usr/src ; patch -p0 < /tmp/libmap_4stable.diff'; \
|
|
|
|
${ECHO_MSG} ' # cd libexec/rtld-elf ; make clean all install'; \
|
2003-12-28 06:32:26 +01:00
|
|
|
${ECHO_MSG} '5.1-RELEASE user:'; \
|
|
|
|
${ECHO_MSG} ' Please see /usr/src/libexec/rtld-elf/Makefile.'; \
|
2003-11-20 17:15:23 +01:00
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
2002-11-13 20:35:14 +01:00
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
-e 's,%%X11BASE%%,${X11BASE},' \
|
2003-11-20 17:15:23 +01:00
|
|
|
-e 's,%%LTHREADSHMAJOR%%,${LTHREADSHMAJOR},' \
|
|
|
|
-e '/^%%LIBMAPCONF%%$$/r ${LIBMAPCONF}' \
|
|
|
|
-e '/^%%LIBMAPCONF%%$$/d' \
|
|
|
|
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${X11BASE}/lib/browser_plugins
|
2004-01-06 17:38:13 +01:00
|
|
|
@${LN} -sf ${LOCALBASE}/Acrobat5/Browsers/intellinux/nppdf.so \
|
|
|
|
${X11BASE}/lib/browser_plugins/
|
|
|
|
@${LN} -sf ${LOCALBASE}/lib/linux-flashplugin6/flashplayer.xpt \
|
|
|
|
${X11BASE}/lib/browser_plugins/
|
|
|
|
@${LN} -sf ${LOCALBASE}/lib/linux-flashplugin6/libflashplayer.so \
|
|
|
|
${X11BASE}/lib/browser_plugins/
|
2003-11-20 17:15:23 +01:00
|
|
|
|
|
|
|
post-install:
|
2002-11-13 20:35:14 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-11-20 17:15:23 +01:00
|
|
|
.include <bsd.port.post.mk>
|