1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/emulators/hercules/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

70 lines
1.7 KiB
Makefile

# 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= 2
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:22 libltdl:22
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
post-extract:
${RM} ${WRKSRC}/ltdl.*
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
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
'/^libherc_la_LIBADD/s|=|= -lltdl |g'
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>