freebsd-ports/graphics/aalib/Makefile
Mark Pulford 754533679e Re-added workaround (see 1.18) to prevent intermittent failures
depending on where the distfile was fetched.
2001-09-02 09:31:17 +00:00

34 lines
718 B
Makefile

# New ports collection makefile for: aalib
# Date created: 9 Dec 1997
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= aalib
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aa-project
MAINTAINER= ports@FreeBSD.org
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
.if defined(WITH_X11)
USE_XLIB= yes
CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \
--x-libraries="${X11BASE}/lib"
.else
CONFIGURE_ARGS= --with-x=no
.endif
post-patch:
@${RM} -f ${WRKSRC}/config.cache
@${PERL} -pi -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \
's|<malloc.h>|<stdlib.h>|g'
.include <bsd.port.mk>