freebsd-ports/emulators/tme/Makefile
Tijl Coosemans 423c191eb9 Convert to USES=libtool. Because the bundled libtool is too old to work
with devel/libltdl libtoolize and other autotools are needed.
2014-08-27 19:12:21 +00:00

43 lines
1,021 B
Makefile

# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$
PORTNAME= tme
PORTVERSION= 0.8
PORTREVISION= 5
CATEGORIES= emulators
MASTER_SITES= http://people.csail.mit.edu/fredette/tme/
MAINTAINER= ports@FreeBSD.org
COMMENT= Emulator for Sun 2/120, 3/150, and SPARCstation 2 machines
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler gettext gmake iconv libtool perl5 pkgconfig
USE_AUTOTOOLS= libltdl libtoolize aclocal autoconf autoheader automake
AUTOMAKE_ARGS= -a -c -f
USE_GNOME= gdkpixbuf2 gtk20
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-static --disable-warnings
MAKE_ENV= LANG=C
MAKE_JOBS_UNSAFE=yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
CFLAGS+= -fbracket-depth=1024
.endif
post-patch:
@${REINPLACE_CMD} -e '/^#ifdef/s|\*/||' \
${WRKSRC}/libtme/misc.c
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/libtme/module.c
.include <bsd.port.post.mk>