2018-07-04 15:40:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2018/07/04 13:40:16 jperkin Exp $
|
2007-05-24 18:23:23 +02:00
|
|
|
|
2015-09-30 18:39:45 +02:00
|
|
|
DISTNAME= ucpp-1.3.2
|
2007-05-24 18:23:23 +02:00
|
|
|
CATEGORIES= devel
|
2017-09-06 12:40:25 +02:00
|
|
|
#MASTER_SITES= http://ucpp.googlecode.com/files/
|
2009-03-21 17:41:06 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2007-05-24 18:23:23 +02:00
|
|
|
|
2009-03-21 17:41:06 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-06 12:40:25 +02:00
|
|
|
HOMEPAGE= https://github.com/lpsantil/ucpp
|
2007-05-24 18:23:23 +02:00
|
|
|
COMMENT= C preprocessor and lexer
|
2015-09-30 18:39:45 +02:00
|
|
|
LICENSE= modified-bsd
|
2007-05-24 18:23:23 +02:00
|
|
|
|
2015-09-30 18:39:45 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGBASE}
|
2008-03-03 18:45:33 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2007-05-24 18:23:23 +02:00
|
|
|
|
2009-03-26 18:14:32 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2015-09-30 18:39:45 +02:00
|
|
|
CFLAGS+= -DSTD_MACROS=0 -DSTD_ASSERT=0 -DNO_UCPP_BUF
|
|
|
|
SUBST_CLASSES+= config
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.config= pre-configure
|
2015-09-30 18:39:45 +02:00
|
|
|
SUBST_FILES.config= config.h
|
|
|
|
# remove /usr/local/include from default path
|
|
|
|
SUBST_SED.config= -e 's|"/usr/local/include", ||'
|
2009-03-26 18:14:32 +01:00
|
|
|
|
2007-05-24 18:23:23 +02:00
|
|
|
do-install:
|
2008-04-07 20:17:34 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ucpp ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/ucpp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2007-05-24 18:23:23 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|