aboutsummaryrefslogtreecommitdiff
path: root/lang/squirrel
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-06-17 01:58:29 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-06-17 01:58:29 +0000
commitea11222e2081fc3e6ee6d50738f662efd20928a7 (patch)
tree9a351dc29f5dd3b7429d3b40a4b6378e673647a3 /lang/squirrel
parent97d267b5c594d2b1d303a4e044e9e62c6ac3ab6a (diff)
downloadports-ea11222e2081fc3e6ee6d50738f662efd20928a7.tar.gz
ports-ea11222e2081fc3e6ee6d50738f662efd20928a7.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
Notes
Notes: svn path=/head/; revision=236095
Diffstat (limited to 'lang/squirrel')
-rw-r--r--lang/squirrel/Makefile21
-rw-r--r--lang/squirrel/pkg-plist12
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