aboutsummaryrefslogtreecommitdiff
path: root/emulators/tiemu3/Makefile
blob: 2201d0387f34039c344d85078ee0093869acd6f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Naram Qashat <cyberbotx@cyberbotx.com>

PORTNAME=	tiemu3
PORTVERSION=	3.03
PORTREVISION=	11
CATEGORIES=	emulators
MASTER_SITES=	SF/gtktiemu/tiemu-linux/TIEmu%20${DISTVERSION}
DISTNAME=	tiemu-${DISTVERSION}
EXTRACT_SUFX=	-nogdb.tar.gz

MAINTAINER=	cyberbotx@cyberbotx.com
COMMENT=	TI89(ti)/92(+)/V200 hand-helds emulator

LICENSE=	GPLv2

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libticables2.so:comms/libticables2 \
		libticalcs2.so:comms/libticalcs2 \
		libticonv.so:converters/libticonv \
		libtifiles2.so:devel/libtifiles2

USES=		gmake gnome groff libtool localbase pkgconfig sdl
USE_GNOME=	cairo gdkpixbuf2 gtk20 libglade2
USE_SDL=	sdl

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-gdb --without-kde

LDFLAGS+=	-Wl,-E

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

post-patch: .SILENT
	${REINPLACE_CMD} -E 's,(install-data-am:).*$$,\1,' ${WRKSRC}/Makefile.in
	${REINPLACE_CMD} -e 's,defined(__LINUX__),& || defined(__BSD__),' \
		${WRKSRC}/src/gui/calc/pckeys.h ${WRKSRC}/src/misc/paths.h
	${REINPLACE_CMD} -e 's|-D.*_DISABLE_DEPRECATED||g' \
		${WRKSRC}/configure

.include <bsd.port.mk>