89 lines
2.5 KiB
Makefile
89 lines
2.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2013/03/11 11:20:27 espie Exp $
|
|
|
|
SHARED_ONLY = Yes
|
|
ONLY_FOR_ARCHS =i386 amd64
|
|
|
|
COMMENT = embeddable prototype-based language
|
|
|
|
DISTNAME = stevedekorte-io-2011.09.12-106-g02f9800
|
|
PKGNAME = io-20110905
|
|
REVISION = 0
|
|
|
|
CATEGORIES = lang
|
|
|
|
SHARED_LIBS = iovmall 0.0 \
|
|
basekit 0.0 \
|
|
coroutine 0.0 \
|
|
garbagecollector 0.0
|
|
|
|
MASTER_SITES = http://spacehopper.org/mirrors/
|
|
|
|
HOMEPAGE = http://www.iolanguage.org/
|
|
|
|
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += X11 Xext Xrender atk-1.0 c cairo clutter-1.0 curses e2fs-uuid
|
|
WANTLIB += edit event_core event_extra expat fontconfig freetype
|
|
WANTLIB += glib-2.0 gmp gobject-2.0 iconv intl jpeg lzo2 m memcached
|
|
WANTLIB += mysqlclient ogg pango-1.0 pcre pcreposix pixman-1 png
|
|
WANTLIB += pthread pthread-stubs python2.7 qdbm readline sndfile
|
|
WANTLIB += sqlite3 theora tiff vorbis xcb xcb-render xcb-shm xml2
|
|
WANTLIB += yajl z
|
|
|
|
LIB_DEPENDS = archivers/lzo2 \
|
|
audio/libsndfile \
|
|
mysql-client-*:databases/mysql,-main \
|
|
databases/qdbm \
|
|
devel/atk \
|
|
devel/gmp \
|
|
devel/libevent2 \
|
|
devel/libmemcached \
|
|
devel/libyajl \
|
|
devel/pango \
|
|
devel/pcre \
|
|
graphics/cairo \
|
|
graphics/clutter/core \
|
|
graphics/jpeg \
|
|
graphics/png \
|
|
graphics/tiff \
|
|
lang/python/2.7 \
|
|
multimedia/libtheora \
|
|
sysutils/e2fsprogs \
|
|
textproc/libxml,no_python
|
|
|
|
MODULES = devel/cmake
|
|
|
|
WRKDIST = ${WRKDIR}/stevedekorte-io-02f9800
|
|
WRKBUILD = ${WRKSRC}/build
|
|
|
|
CONFIGURE_ARGS =-DATK_NAMES=atk-1.0 \
|
|
-DCLUTTER_NAMES=clutter-1.0 \
|
|
-DEVENT_NAMES=event_core \
|
|
-DUUID_INCLUDE_DIR=${LOCALBASE}/include \
|
|
-DMYSQL_INCLUDE_DIR=${LOCALBASE}/include/mysql \
|
|
-DCLUTTER_INCLUDE_DIR=${LOCALBASE}/include/clutter-1.0 \
|
|
-DEVENT_INCLUDE_DIR=${LOCALBASE}/include/event2
|
|
|
|
# Special hacking to get the Socket addon working, since it requires
|
|
# libevent2 functions, but seems to use libevent1 headers.
|
|
pre-configure:
|
|
perl -pi -e 's/\#include \<evhttp\.h\>/#include <http.h>\n#include <http_struct.h>\n#include <keyvalq_struct.h>\n#include <http_compat.h>/' \
|
|
${WRKSRC}/addons/Socket/source/Io*.h
|
|
perl -pi -e 's/\#include \<event\.h\>/#include <event.h>\n#include <event_struct.h>\n#include <buffer_compat.h>/' \
|
|
${WRKSRC}/addons/Socket/source/Io*.h
|
|
${SUBST_CMD} ${WRKSRC}/addons/Clutter/CMakeLists.txt
|
|
|
|
pre-install:
|
|
cp -R ${WRKBUILD}/_build/headers ${PREFIX}/include/io
|
|
find ${WRKDIST} -name '*.orig' -or -name '*.beforesubst' -print0 | \
|
|
xargs -r0 rm
|
|
|
|
do-test:
|
|
cd ${WRKBUILD} && _build/binaries/io \
|
|
../libs/iovm/tests/correctness/run.io
|
|
|
|
.include <bsd.port.mk>
|