aboutsummaryrefslogtreecommitdiff
path: root/emulators/ucon64/Makefile
blob: 1393bf7925a6bfc542be40b74736e87c5b25a68d (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
46
47
48
49
50
51
52
53
54
55
# $FreeBSD$

PORTNAME=	ucon64
PORTVERSION=	2.2.0
CATEGORIES=	emulators
MASTER_SITES=	SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTNAME:tl}-${PORTVERSION}
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	root@cooltrainer.org
COMMENT=	Multipurpose video game ROM image and backup utility

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/../license.html # only available as HTML file

USES=		gmake
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes

WRKSRC_SUBDIR=	src

PLIST_FILES=	bin/ucon64

OPTIONS_DEFINE=	COLOR DEBUG DISCMAGE PARALLEL USB ZLIB
OPTIONS_DEFAULT=COLOR DISCMAGE PARALLEL USB ZLIB
OPTIONS_SUB=	yes

COLOR_DESC=	ANSI-colored output
DEBUG_DESC=	Additional debugging output
DISCMAGE_DESC=	ISO/BIN/CDI format support
PARALLEL_DESC=	Parallel port backup unit support
USB_DESC=	USB backup unit support
ZLIB_DESC=	ZIP/gzip archive support

COLOR_CONFIGURE_ENABLE=		ansi-color
DEBUG_CONFIGURE_ENABLE=		debug
DISCMAGE_CONFIGURE_WITH=	libdiscmage
DISCMAGE_PLIST_FILES=		lib/libdiscmage.so
PARALLEL_CONFIGURE_ENABLE=	parallel
USB_CONFIGURE_WITH=		libusb
ZLIB_CONFIGURE_WITH=		zlib

post-patch:
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ucon64.c
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/ucon64_misc.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}

do-install-DISCMAGE-on:
	${INSTALL_LIB} ${WRKSRC}/libdiscmage/discmage.so \
		${STAGEDIR}${PREFIX}/lib/libdiscmage.so

.include <bsd.port.mk>