1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/www/linuxpluginwrapper/Makefile
Norikatsu Shigemura b1d7042165 Mark alpha quality of Acrobat Plugin on 4-stable. This is minor fix.
No feature change.

Suggested by:	Mike Harding <mvh@ix.netcom.com>
2004-03-09 17:26:31 +00:00

88 lines
2.5 KiB
Makefile

# New ports collection makefile for: linuxpluginwrapper
# Date Created: 2003-06-15
# Whom: nork@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= linuxpluginwrapper
PORTVERSION= 20040310
PORTREVISION= 0
CATEGORIES= www linux
MASTER_SITES= http://people.FreeBSD.org/~nork/distfiles/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
MAINTAINER= nork@FreeBSD.org
COMMENT= A wrapper allowing use of linux-plugins with native applications
.include <bsd.port.pre.mk>
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
USE_XLIB= yes
USE_MOTIF= yes
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFLICTS= flashpluginwrapper-*
.if ${OSVERSION} >= 500000
LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD5.x
.else
LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD4.x
.endif
.if ${OSVERSION} < 501105
RTLD= /usr/libexec/ld-elf.so.1
.else
RTLD= /libexec/ld-elf.so.1
.endif
.if defined(WITH_DEBUG)
CFLAGS+= -DDEBUG=1
.endif
.if !defined(PACKAGE_BUILDING)
.if ${OSVERSION} < 490102 || ${OSVERSION} >= 500000 && ${OSVERSION} < 501107
pre-everything::
@if ! strings ${RTLD} | ${GREP} libmap.conf > /dev/null 2>&1; then \
${ECHO_MSG} 'Please enable libmap.conf(5) feature for rtld(1).'; \
${ECHO_MSG} '4-stable user:'; \
${ECHO_MSG} ' You can get a following patch.'; \
${ECHO_MSG} ' http://people.FreeBSD.org/~nork/libmap_4stable.diff'; \
${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'; \
${ECHO_MSG} '5.1-RELEASE user:'; \
${ECHO_MSG} ' Please see /usr/src/libexec/rtld-elf/Makefile.'; \
${FALSE}; \
fi
.endif
.endif
post-build:
@${SED} -e 's,%%PREFIX%%,${PREFIX},' \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
-e 's,%%X11BASE%%,${X11BASE},' \
-e 's,%%LTHREADSHMAJOR%%,${LTHREADSHMAJOR},' \
-e '/^%%LIBMAPCONF%%$$/r ${LIBMAPCONF}' \
-e '/^%%LIBMAPCONF%%$$/d' \
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
pre-install:
@${MKDIR} ${X11BASE}/lib/browser_plugins
@${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/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>