pkgsrc/lang/icon/Makefile
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

65 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2005/12/05 20:50:25 rillig Exp $
DISTNAME= icon.v942src
PKGNAME= icon-9.4.2
CATEGORIES= lang
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/packages/unix/
EXTRACT_SUFX= .tgz
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.cs.arizona.edu/icon/index.htm
COMMENT= The Icon programming language
CONFIGURE_TARGET= X-Configure
BUILD_TARGET= All
TEST_TARGET= Test
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "NetBSD"
NAME= netbsd
. if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "mipseb") || (${MACHINE_ARCH} == "mipsel") || \
(${MACHINE_ARCH} == "m68k") || (${MACHINE_ARCH} == "vax")
. else
PTHREAD_OPTS+= require native
. include "../../mk/pthread.buildlink3.mk"
. endif
.elif ${OPSYS} == "SunOS"
. if !empty(CC_VERSION:M*gcc*)
NAME= sun_gcc
. elif !empty(CC_VERSION:MSun)
NAME= sun_sunc
. else
PKG_FAIL_REASON+= "${PKGNAME} does not know about ${CC_VERSION}"
. endif
. if ${MACHINE_ARCH} == "sparc"
. else
PTHREAD_OPTS+= require native
. include "../../mk/pthread.buildlink3.mk"
. endif
.else
PKG_FAIL_REASON+= "${PKGNAME} does not have the correct config name for this system"
.endif
.include "../../mk/x11.buildlink3.mk"
pre-build:
${MKDIR} ${WRKSRC}/lib/icon
do-configure:
cd ${WRKSRC}/config/netbsd; \
${SED} -e 's:@X11BASE@:${X11BASE}:g' define.h.in \
> define.h
cd ${WRKSRC}; ${MAKE} ${CONFIGURE_TARGET} name=${NAME}
do-install:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} dest=${PREFIX} Install
.include "../../mk/bsd.pkg.mk"