2005-11-04 13:36:09 +00:00
|
|
|
# New ports collection makefile for: io
|
|
|
|
# Date created: 4 Nov 2005
|
|
|
|
# Whom: Hye-Shik Chang
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= io
|
2009-08-03 15:43:40 +00:00
|
|
|
PORTVERSION= 0.0.2009.08.03
|
2005-11-04 13:36:09 +00:00
|
|
|
CATEGORIES= lang
|
2009-08-03 15:43:40 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://people.freebsd.org/~gahr/distfiles/
|
|
|
|
DISTNAME= io-${PORTVERSION:S/0.0.//}
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2009-08-03 15:43:40 +00:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2005-11-04 13:36:09 +00:00
|
|
|
COMMENT= Small prototype-based programming language
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-05-19 05:43:18 +00:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
USE_LDCONFIG= yes
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
MAKE_ENV= INSTALL_PREFIX="${PREFIX}"
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
# All addons that do not require extra dependencies
|
|
|
|
# Additional addons may be added as separate ports with some
|
|
|
|
# makefile hacking in a manner similar to Qt4 ports
|
|
|
|
DEFAULT_ADDONS= AsyncRequest Blowfish Box CGI ContinuedFraction Curses \
|
|
|
|
EditLine Flux Fnmatch LZO Loki MD5 NetworkAdapter \
|
|
|
|
NotificationCenter Random Range Rational ReadLine SHA1 \
|
|
|
|
SqlDatabase Syslog SystemCall Thread User Zlib
|
2005-12-17 03:17:20 +00:00
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
2006-01-19 23:46:15 +00:00
|
|
|
|
2009-08-16 21:26:23 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/addons && for addon in *; do \
|
|
|
|
if ! ${ECHO_CMD} ${DEFAULT_ADDONS} | ${GREP} $$addon > /dev/null; then \
|
|
|
|
${RM} -fr $$addon; \
|
2005-11-04 13:36:09 +00:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS = $$(OPTIMIZE)|CFLAGS +=|' \
|
|
|
|
${WRKSRC}/Makefile.lib
|
|
|
|
@${REINPLACE_CMD} -e '/CC = gcc/ d' \
|
|
|
|
${WRKSRC}/libs/basekit/source/simd_cph/test/Makefile
|
|
|
|
@${REINPLACE_CMD} -e '/cp _build\/dll\/.*\/bin/ d' ${WRKSRC}/Makefile
|
2009-08-17 18:28:24 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
@${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS = -fPIC|' \
|
|
|
|
${WRKSRC}/Makefile.lib \
|
|
|
|
${WRKSRC}/libs/basekit/Makefile.lib
|
|
|
|
.endif
|
2005-11-04 13:36:09 +00:00
|
|
|
|
2008-05-19 05:43:18 +00:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/include/io
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/_build/headers/* ${PREFIX}/include/io
|
2005-11-04 13:36:09 +00:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-05-19 05:43:18 +00:00
|
|
|
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
|
2005-11-04 13:36:09 +00:00
|
|
|
.endif
|
|
|
|
|
2009-08-16 21:26:23 +00:00
|
|
|
.include <bsd.port.post.mk>
|