fad36c0b53
While here, pet portlint. Approved by: portmgr (tier-2 blanket)
58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= clanlib
|
|
PORTVERSION= 2.3.7
|
|
PORTREVISION= 15
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.clanlib.org/download/releases-2.0/
|
|
DISTNAME= ClanLib-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Cross-platform game SDK
|
|
|
|
LICENSE= ZLIB
|
|
|
|
BROKEN_aarch64= fails to compile: X11/x11_window.cpp:1626:40: use of undeclared identifier 'malloc'; did you mean 'valloc'?
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
libmikmod.so:audio/libmikmod \
|
|
libvorbis.so:audio/libvorbis \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libpcre.so:devel/pcre
|
|
|
|
USES= compiler:c++11-lib gmake jpeg libtool localbase:ldflags \
|
|
pathfix pkgconfig sqlite tar:tgz
|
|
USE_XORG= x11
|
|
USE_LDCONFIG= yes
|
|
USE_GL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-docs \
|
|
--enable-clanDisplay \
|
|
--enable-clanGL \
|
|
--enable-clanGL1 \
|
|
--enable-clanSound \
|
|
--enable-clanDatabase \
|
|
--enable-clanSqlite \
|
|
--enable-clanRegExp \
|
|
--enable-clanNetwork \
|
|
--enable-clanGUI \
|
|
--enable-clanCSSLayout \
|
|
--enable-clanSWRender \
|
|
--enable-clanMikMod \
|
|
--enable-clanVorbis \
|
|
--enable-getaddr
|
|
|
|
INSTALL_TARGET= install-strip
|
|
PLIST_SUB+= VER=${PORTVERSION:R} \
|
|
SHORT_VER=${PORTVERSION:R:R}${PORTVERSION:R:E}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|LIBS="-lsqlite3 -ldl"|LIBS="-lsqlite3"|g' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '114 s|/proc/self/exe|/proc/curproc/file|g' \
|
|
${WRKSRC}/Sources/Core/System/Unix/init_linux.cpp
|
|
|
|
.include <bsd.port.mk>
|