2004-04-13 07:02:01 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.18 2004/04/13 05:02:01 reed Exp $
|
2002-08-26 21:38:05 +02:00
|
|
|
|
|
|
|
DISTNAME= aalib-${DIST_VERS}
|
|
|
|
CATEGORIES+= graphics
|
|
|
|
MASTER_SITES+= ${MASTER_SITE_SOURCEFORGE:=aa-project/}
|
|
|
|
|
|
|
|
DIST_VERS= 1.4rc4
|
|
|
|
BASE_VERS= 1.4.0.4
|
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER?= manu@NetBSD.org
|
2002-08-26 21:38:05 +02:00
|
|
|
HOMEPAGE= http://aa-project.sourceforge.net/aalib/
|
|
|
|
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../graphics/aalib/distinfo
|
|
|
|
PATCHDIR= ${.CURDIR}/../../graphics/aalib/patches
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/aalib-1.4.0
|
2002-08-26 21:38:05 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_LIBTOOL= YES
|
|
|
|
|
2003-12-03 03:14:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-curses-driver=no
|
2004-04-13 07:02:01 +02:00
|
|
|
CONFIGURE_ARGS+= --with-slang-driver=no
|
2003-12-03 03:14:00 +01:00
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-08-26 21:38:05 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-26 07:50:10 +01:00
|
|
|
.if !target(post-patch)
|
|
|
|
post-patch:
|
2004-01-27 01:53:10 +01:00
|
|
|
@for f in `${FIND} ${WRKSRC} -name '*.[ch]' -print`; do \
|
2003-10-26 07:50:10 +01:00
|
|
|
${SED} -e "s|<malloc.h>|<stdlib.h>|g" $$f > $$f.patch \
|
|
|
|
&& ${MV} $$f.patch $$f; \
|
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
2002-08-26 21:38:05 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|