summaryrefslogtreecommitdiff
path: root/emulators/freebsd_lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/freebsd_lib/Makefile')
-rw-r--r--emulators/freebsd_lib/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/emulators/freebsd_lib/Makefile b/emulators/freebsd_lib/Makefile
new file mode 100644
index 00000000000..689a7db5636
--- /dev/null
+++ b/emulators/freebsd_lib/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/09/02 20:57:02 explorer Exp $
+#
+
+DISTNAME= freebsd_lib-2.2.7
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_LOCAL} http://www.flame.org/NetBSD/
+ONLY_FOR_ARCHS= i386
+
+MAINTAINER= packages@netbsd.org
+
+# The distfile is distributed under the GPL, so no re-distribution of
+# binaries without source.
+MIRROR_DISTFILE= no
+
+NO_BUILD= yes
+EXTRACT_ONLY= # empty
+NO_WRKSUBDIR= yes
+
+EMUL_DIR= ${PREFIX}/emul
+FREEBSD_DIR= ${EMUL_DIR}/freebsd
+
+pre-install:
+ @[ -d ${EMUL_DIR} ] || ${MKDIR} ${EMUL_DIR}
+ @if [ ! -e /emul ] || \
+ [ "`ls -i /emul/.`" != "`ls -i ${EMUL_DIR}`" ]; \
+ then \
+ ${ECHO} -n "You must create a link \"/emul\" "; \
+ ${ECHO} "pointing to \"${EMUL_DIR}\"."; \
+ exit 1; \
+ fi
+
+do-install:
+ ${MKDIR} ${FREEBSD_DIR}
+ (cd ${FREEBSD_DIR}; pax -rzf ${DISTDIR}/${DISTNAME}.tar.gz)
+
+.include "../../mk/bsd.pkg.mk"