summaryrefslogtreecommitdiff
path: root/lang/Cg-compiler
diff options
context:
space:
mode:
authorjlam <jlam>2007-07-29 05:18:36 +0000
committerjlam <jlam>2007-07-29 05:18:36 +0000
commit275d7ca4f86079521544b7e820383bc271742a03 (patch)
tree45cad36d8470a568b9136017b2dd79c9efcc65bc /lang/Cg-compiler
parent838c2b6ce6faa38ac52676e60b80d81504e7827c (diff)
downloadpkgsrc-275d7ca4f86079521544b7e820383bc271742a03.tar.gz
* Add new emulator framework in pkgsrc/mk/emulator that handles all
binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
Diffstat (limited to 'lang/Cg-compiler')
-rw-r--r--lang/Cg-compiler/Makefile24
-rw-r--r--lang/Cg-compiler/PLIST10
2 files changed, 15 insertions, 19 deletions
diff --git a/lang/Cg-compiler/Makefile b/lang/Cg-compiler/Makefile
index cfae5b6df32..e5a10626829 100644
--- a/lang/Cg-compiler/Makefile
+++ b/lang/Cg-compiler/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2007/01/07 09:13:56 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2007/07/29 05:19:27 jlam Exp $
#
DISTNAME= CgLinux-1.3.0408-0400
PKGNAME= Cg-compiler-1.3beta2
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= lang
MASTER_SITES= ftp://download.nvidia.com/developer/cg/Cg_1.3/Linux/
@@ -11,18 +11,15 @@ MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://developer.nvidia.com/object/cg_toolkit.html
COMMENT= NVIDIA Cg Compiler for Linux
-ONLY_FOR_PLATFORM= *-*-i386
+EMUL_PLATFORMS= linux-i386
+EMUL_MODULES.linux= base
+SUSE_VERSION_REQD= 7.3
-WRKSRC= ${WRKDIR}
-NO_BUILD= yes
+WRKSRC= ${WRKDIR}
+BUILD_DIRS= # empty
+RUN_LDCONFIG= yes
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} != "Linux"
-DEPENDS+= suse_base>=7.3:../../emulators/${SUSE_DIR_PREFIX}_base
-.endif
-
-INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man3 share
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man3 share
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/Cg
@@ -32,9 +29,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/usr/bin/cgc ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/usr/include/Cg/* ${PREFIX}/include/Cg
${INSTALL_DATA} ${WRKSRC}/usr/include/CgFX/* ${PREFIX}/include/CgFX
- ${INSTALL_DATA} ${WRKSRC}/usr/lib/* ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/usr/lib/* ${EMULDIR}/lib
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man3/* ${PREFIX}/${PKGMANDIR}/man3
cd ${WRKSRC}/usr/local && ${PAX} -rwppm . ${PREFIX}/share/NVIDIA-Cg-linux
-.include "../../emulators/suse_linux/Makefile.application"
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/Cg-compiler/PLIST b/lang/Cg-compiler/PLIST
index 6bbbed6b948..c6633733fba 100644
--- a/lang/Cg-compiler/PLIST
+++ b/lang/Cg-compiler/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/18 21:12:51 minskim Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/07/29 05:19:27 jlam Exp $
bin/cgc
include/Cg/cg.h
include/Cg/cgContextManager.h
@@ -14,10 +14,10 @@ include/Cg/cg_profiles.h
include/CgFX/ICgFX.h
include/CgFX/ICgFXEffect.h
include/CgFX/cgfx_stddefs.h
-lib/libCg.so
-lib/libCgFX.so
-lib/libCgFXGL.so
-lib/libCgGL.so
+${EMULSUBDIRSLASH}lib/libCg.so
+${EMULSUBDIRSLASH}lib/libCgFX.so
+${EMULSUBDIRSLASH}lib/libCgFXGL.so
+${EMULSUBDIRSLASH}lib/libCgGL.so
man/man3/cgCompileProgram.3
man/man3/cgConnectParameter.3
man/man3/cgCopyProgram.3