/[ports]/head/emulators/hercules/Makefile
ViewVC logotype

Contents of /head/emulators/hercules/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 320958 - (show annotations) (download)
Fri Jun 14 18:11:55 2013 UTC (11 years ago) by rakuco
File MIME type: text/plain
File size: 1611 byte(s)
Update to 3.08.

PR:		ports/178386
Submitted by:	Jukka Ukkonen <jau@oxit.fi>
Approved by:	maintainer timeout (38 days)

1 # Created by: Miguel Mendez <flynn@energyhq.homeip.net>
2 # $FreeBSD$
3
4 PORTNAME= hercules
5 PORTVERSION= 3.08
6 CATEGORIES= emulators
7 MASTER_SITES= http://downloads.hercules-390.eu/
8
9 MAINTAINER= bzeeb+freebsdports@zabbadoz.net
10 COMMENT= System/370, ESA/390, and z/Architecture Emulator
11
12 OPTIONS_DEFINE= DEBUG NLS PTHREADS
13 OPTIONS_DEFAULT= NLS PTHREADS
14 PTHREADS_DESC= Build with pthreads instead of fthreads
15
16 USE_AUTOTOOLS= libtool libltdl
17 GNU_CONFIGURE= yes
18 USE_LDCONFIG= yes
19
20 PORTDOCS= *
21
22 .include <bsd.port.options.mk>
23
24 post-extract:
25 @${RM} ${WRKSRC}/ltdl.*
26
27 post-patch:
28 @${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure
29 @${REINPLACE_CMD} -e 's@SOL_TCP@IPPROTO_TCP@g' ${WRKSRC}/hscutl.c
30 .if empty(PORT_OPTIONS:MDOCS)
31 @${REINPLACE_CMD} -e 's,^SUBDIRS = decNumber m4 po util html man . crypto,SUBDIRS = decNumber m4 po util man . crypto,g' ${WRKSRC}/Makefile.in
32 .else
33 @${REINPLACE_CMD} -e 's,^datadir = @datadir@,datadir = ${PREFIX}/share/doc/,' ${WRKSRC}/html/Makefile.in
34 .endif
35 @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
36 '/^libherc_la_LIBADD/s|=|= -lltdl |g'
37
38 MAN1= cckddiag.1 dasdseq.1
39 MAN4= cckd.4
40
41 post-install:
42 @${CAT} ${PKGMESSAGE}
43
44 .if ${PORT_OPTIONS:MDEBUG}
45 CFLAGS+= -g
46 .endif
47
48 .if ${PORT_OPTIONS:MPTHREADS}
49 CONFIGURE_ARGS+= --disable-fthreads
50 .endif
51
52 .if empty(PORT_OPTIONS:MNLS)
53 CONFIGURE_ARGS+= --disable-nls
54 PLIST_SUB+= GETTEXT="@comment "
55 .else
56 CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
57 USES+= gettext
58 PLIST_SUB+= GETTEXT=""
59 .endif
60
61 .if defined(CFLAGS)
62 CONFIGURE_ARGS+= --enable-optimization="no"
63 .endif
64
65 .include <bsd.port.mk>

Properties

Name Value
svn:eol-style native
svn:keywords FreeBSD=%H
svn:mime-type text/plain

  ViewVC Help
Powered by ViewVC 1.1.27