diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-06-17 09:58:29 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-06-17 09:58:29 +0800 |
commit | 4ac386fa1b1c85664cfab48c6f8c21bc922e2639 (patch) | |
tree | 194a04cc44909ef3c095fa71312c664ffa3fb09a /lang | |
parent | 9f6f1833f93880627732b74e7d7bbee03312d0d5 (diff) | |
download | freebsd-ports-gnome-4ac386fa1b1c85664cfab48c6f8c21bc922e2639.tar.gz freebsd-ports-gnome-4ac386fa1b1c85664cfab48c6f8c21bc922e2639.tar.zst freebsd-ports-gnome-4ac386fa1b1c85664cfab48c6f8c21bc922e2639.zip |
- Chmod dirs/files 755/644 after extraction, as everything is extracted with 000 by default
- Fix build (cd: can't cd to sqstdlib)
- Clean the port up a bit, add some whitespace
- Use traditional plist
Diffstat (limited to 'lang')
-rw-r--r-- | lang/squirrel/Makefile | 21 | ||||
-rw-r--r-- | lang/squirrel/pkg-plist | 12 |
2 files changed, 22 insertions, 11 deletions
diff --git a/lang/squirrel/Makefile b/lang/squirrel/Makefile index b867092a3e6f..067e8d29efc7 100644 --- a/lang/squirrel/Makefile +++ b/lang/squirrel/Makefile @@ -18,11 +18,6 @@ CONFLICTS= squsq-[0-9]* USE_DOS2UNIX= yes USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/SQUIRREL2 -SHORTINCS= stdaux stdblob stdio stdmath stdstring stdsystem uirrel -FULLINCS= ${SHORTINCS:S|^|sq|:S|$|.h|} -PLIST_FILES= bin/sq lib/libsqstdlib.so lib/libsqstdlib.so.0\ - lib/libsquirrel.so lib/libsquirrel.so.0\ - ${FULLINCS:S|^|include/|} .include <bsd.port.pre.mk> @@ -33,18 +28,22 @@ CFLAGS+= -fPIC ALL_TARGET= sq32 .endif +post-extract: + @${FIND} ${WRKSRC} -type d -exec ${CHMOD} 755 {} \; + @${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} \; + post-patch: - @${FIND} ${WRKSRC} -name Makefile|${XARGS} ${REINPLACE_CMD}\ - -e '/^MAKE/d;s|gcc|$${CC}|;s|-O2|$${CFLAGS}|;s|g++|$${CXX}|'\ - -e 's|\.a|.so|g;s|ar rc|$${CC} ${CFLAGS} -shared -o|' + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \ + -e '/^MAKE/d; s|gcc|$${CC}|; s|-O2|$${CFLAGS}|; s|g++|$${CXX}|' \ + -e 's|\.a|.so|g; s|ar rc|$${CC} ${CFLAGS} -shared -o|' + @${REINPLACE_CMD} -e '/cd / s|$$|\&\& cd ..|' ${WRKSRC}/Makefile do-install: @${INSTALL_PROGRAM} ${WRKSRC}/bin/sq ${PREFIX}/bin/ - @cd ${WRKSRC}/lib&&${INSTALL_PROGRAM} libsqstdlib.so libsquirrel.so\ + @cd ${WRKSRC}/lib && ${INSTALL_PROGRAM} libsqstdlib.so libsquirrel.so \ ${PREFIX}/lib/ @${LN} -sf libsqstdlib.so ${PREFIX}/lib/libsqstdlib.so.0 @${LN} -sf libsquirrel.so ${PREFIX}/lib/libsquirrel.so.0 - @cd ${WRKSRC}/include&&${INSTALL_DATA} ${FULLINCS}\ - ${PREFIX}/include/ + @cd ${WRKSRC}/include && ${INSTALL_DATA} *.h ${PREFIX}/include/ .include <bsd.port.post.mk> diff --git a/lang/squirrel/pkg-plist b/lang/squirrel/pkg-plist new file mode 100644 index 000000000000..69e6c87516d6 --- /dev/null +++ b/lang/squirrel/pkg-plist @@ -0,0 +1,12 @@ +bin/sq +include/sqstdaux.h +include/sqstdblob.h +include/sqstdio.h +include/sqstdmath.h +include/sqstdstring.h +include/sqstdsystem.h +include/squirrel.h +lib/libsqstdlib.so +lib/libsqstdlib.so.0 +lib/libsquirrel.so +lib/libsquirrel.so.0 |