blob: 7efce14947704912ec58f0cf95a095bf91657af5 (
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
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: dice
# Date created: Thu Jan 31 12:07:01 CET 2002
# Whom: Miguel Mendez <flynn@energyhq.homeip.net>
#
# $FreeBSD$
#
PORTNAME= hercules
PORTVERSION= 3.05
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.hercules-390.org/
MAINTAINER= bzeeb+freebsdports@zabbadoz.net
COMMENT= The Hercules System/370, ESA/390, and z/Architecture Emulator
OPTIONS= PTHREADS "Build with pthreads instead of fthreads." on \
NLS "Build with native language support." on \
DEBUG "Enable for debugging hercules itself." off
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's,^SUBDIRS = decNumber m4 po util html man . crypto,SUBDIRS = decNumber m4 po util man . crypto,g' ${WRKSRC}/Makefile.in
.else
@${REINPLACE_CMD} -e 's,^datadir = @datadir@,datadir = ${PREFIX}/share/doc/,' ${WRKSRC}/html/Makefile.in
.endif
MAN1= cckddiag.1 dasdseq.1
MAN4= cckd.4
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
CFLAGS+= -g
.endif
.if defined(WITH_PTHREADS)
CONFIGURE_ARGS+= --disable-fthreads
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= GETTEXT="@comment "
.else
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
USE_GETTEXT= yes
PLIST_SUB+= GETTEXT=""
.endif
.if defined(CFLAGS)
CONFIGURE_ARGS+= --enable-optimization="no"
.endif
.include <bsd.port.post.mk>
|