forked from Lainports/freebsd-ports
The Fedora 10 infrastructure ports have been in use since June 2009 and, while
having served a great deed, have become unsupported upstream and hence affected
by unfixed security vulnerabilities. In addition to that, many recent Linux
binaries need newer libc / stdlibc++ versions.
This commit adds the linux-c6- userland as drop-in replacement for the -f10
infrastructure, as well as upgrading the linux_base-c6 port to CentOS 6.5.
If you want to switch to linux-c6 ports, please define at /etc/make.conf:
OVERRIDE_LINUX_BASE_PORT=c6
OVERRIDE_LINUX_NONBASE_PORTS=c6
Additionally, please add the following line to /etc/sysctl.conf:
compat.linux.osrelease=2.6.18
Upgrading procedures are shown in /usr/ports/UPDATING.
This work has been inspired by Artyom Mirgorodskiy's post to emulation@ in
November 2013, using and extending mav@'s work. It has been tested extensively
and most reported issues were already fixed. Please report any additional bug
or "features" to the emulation mailing list.
Many thanks to: mav@, rene@, allanjude@, netchild@, antoine@, everyone who's
filed Issues and Pull requests on GitHub,
PR: 186820
Differential Revision: https://reviews.freebsd.org/D793
Reviewed by: allanjude, antoine, bapt, rene
Approved by: portmgr (antoine, bapt)
Approved by: koobs (mentor)
Sponsored by: Perceivon Hosting Inc.
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# Created by: Dave Grochowski
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nspluginwrapper
|
|
PORTVERSION= 1.4.4
|
|
PORTREVISION= 4
|
|
CATEGORIES= www linux emulators
|
|
MASTER_SITES= http://nspluginwrapper.org/download/ \
|
|
LOCAL/jkim \
|
|
LOCAL/jkim:binfile
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${BINFILE}:binfile
|
|
|
|
MAINTAINER= jkim@FreeBSD.org
|
|
COMMENT= Compatibility plugin for Mozilla NPAPI plugins
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
|
|
|
CONFLICTS= nspluginwrapper-1.3.*
|
|
|
|
BINBUILD= 1
|
|
BINFILE= ${PORTNAME}-i386-${PORTVERSION}-${BINBUILD}${EXTRACT_SUFX}
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_GNOME= glib20 gtk20
|
|
USE_LDCONFIG= yes
|
|
USE_LINUX= yes
|
|
USE_LINUX_APPS= gtk2
|
|
USE_XORG= x11 xext xt
|
|
USES= gmake pkgconfig
|
|
|
|
CFLAGS+= -std=c99
|
|
|
|
CONFIGURE_ARGS= --enable-generic --enable-strip --prefix=${PREFIX} \
|
|
--target-os=linux --target-cpu=i386 \
|
|
--with-cc=${CC} --with-cxx=${CXX}
|
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
|
LINUX_BINDIR= usr/lib/nspluginwrapper/i386/linux
|
|
|
|
PLIST_SUB= LIBDIR="${LIBDIR:C/^${PREFIX}\///}" HOST_ARCH="${HOST_ARCH}"
|
|
|
|
SUB_FILES= npviewer
|
|
SUB_LIST+= NSPLUGINWRAPPER="${LIBDIR}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
HOST_ARCH= x86_64
|
|
PLIST_SUB+= HOST_AMD64=""
|
|
.else
|
|
HOST_ARCH= ${ARCH}
|
|
PLIST_SUB+= HOST_AMD64="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
|
|
${WRKSRC}/src/npw-config.c
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${LIBDIR}/i386/linux
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${LINUX_BINDIR}/*.bin \
|
|
${WRKDIR}/${LINUX_BINDIR}/*.so ${STAGEDIR}${LIBDIR}/i386/linux/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/npviewer ${STAGEDIR}${LIBDIR}/i386/linux/
|
|
|
|
.include <bsd.port.post.mk>
|