COMMENT=		IBM System/370 emulator

DISTNAME=		hercules-3.13
CATEGORIES=		emulators

# Q-license (Trolltech)
PERMIT_PACKAGE=	        Yes

CATEGORIES=             emulators

HOMEPAGE=               https://hercules-390.eu

WANTLIB+=               m pthread z

SITES=			http://downloads.hercules-390.eu/

# only the zip has ./autogen.sh
EXTRACT_SUFX=		.zip

AUTOCONF_VERSION=	2.69
AUTOMAKE_VERSION=	1.12
AUTORECONF=		sh ./autogen.sh

USE_GMAKE=		Yes
CONFIGURE_STYLE=	autoreconf
# avoid libtools and Linux-isms
CONFIGURE_ARGS=         --disable-dynamic-load \
                        --disable-external-gui \
                        --disable-capabilities \
                        --enable-static \
                        --disable-shared

NO_TEST=		Yes

# no top-level directory in the zip file
do-extract:
	@mkdir -p ${WRKDIST}
	@cd ${WRKDIST} && \
		unzip -aoq ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}

# remove Windows makefile
pre-build:
			@rm ${WRKDIST}/makefile

.include <bsd.port.mk>
