pkgsrc/devel/nspr/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

62 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2005/12/05 20:50:05 rillig Exp $
DISTNAME= nspr-4.4.1
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES?= ${MASTER_SIZE_MOZILLA:=nspr/releases/v4.4.1/src}
MAINTAINER= mjl@luckie.org.nz
HOMEPAGE= http://www.mozilla.org/projects/nspr/index.html
COMMENT= Platform-neutral API for system level and libc like functions
WRKSRC= ${WRKDIR}/${DISTNAME}/mozilla/nsprpub/build
USE_TOOLS+= autoconf213 gmake
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --disable-debug
MAKE_ENV+= DIST=${WRKSRC:Q}/dist
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ENV+= LIBRUNPATH=${PREFIX:Q}/lib/nspr
.include "../../mk/bsd.prefs.mk"
.if ${OBJECT_FMT} == "ELF"
SO_SUFFIX= so
.elif ${OBJECT_FMT} == "Mach-O"
SO_SUFFIX= dylib
.else
SO_SUFFIX= so.1.0
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
INSTALLATION_DIRS= bin
pre-configure:
cd ${WRKSRC}/.. && autoconf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/nspr
${INSTALL_DATA_DIR} ${PREFIX}/lib/nspr
(cd ${WRKSRC}/dist/include && ${PAX} -Lrwpe . ${PREFIX}/include/ )
(cd ${WRKSRC}/dist/lib && ${PAX} -Lrwpe . ${PREFIX}/lib/nspr/ )
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
{ ${ECHO} "Name: NSPR"; \
${ECHO} "Description: The Netscape Portable Runtime"; \
${ECHO} "Version: ${PKGVERSION}"; \
${ECHO} "Cflags: -I${PREFIX}/include/nspr"; \
${ECHO} "Libs: -L${PREFIX}/lib/nspr" \
"${COMPILER_RPATH_FLAG}${PREFIX}/lib/nspr" \
"-lplds4 -lplc4 -lnspr4 ${BUILDLINK_LIBS.pthread}"; \
} >${PREFIX}/lib/pkgconfig/nspr.pc
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
CONFIGURE_ARGS+= --without-pthreads
.else
CONFIGURE_ARGS+= --with-pthreads
.include "../../mk/pthread.buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"