5393242c73
Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2018/07/04 13:40:16 jperkin Exp $
|
|
#
|
|
|
|
DISTNAME= uno_v213
|
|
PKGNAME= uno-2.13
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://spinroot.com/uno/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://spinroot.com/uno/
|
|
COMMENT= Tool for source code analysis
|
|
|
|
WRKSRC= ${WRKDIR}/uno/src
|
|
MAKE_FILE= makefile
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
USE_LANGUAGES= c99
|
|
USE_TOOLS+= bison gmake flex
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# These platforms cannot build 32-on-64 binaries.
|
|
NOT_FOR_PLATFORM+= *-*-alpha
|
|
NOT_FOR_PLATFORM+= DragonFly-*-x86_64
|
|
|
|
# This package always issues -m32 from its makefile; remove it if 32-bit.
|
|
IS32=yes
|
|
.for P in ${LP64PLATFORMS}
|
|
.if ${MACHINE_PLATFORM:M${P}}
|
|
IS32=no
|
|
.endif
|
|
.endfor
|
|
.if ${IS32} == "yes"
|
|
BUILDLINK_TRANSFORM+= rm:-m32
|
|
.endif
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_FILES.prefix= makefile
|
|
SUBST_SED.prefix= -e "s,/usr/bin,${PREFIX}/bin,g"
|
|
SUBST_MESSAGE.prefix= Fixing hardcoded paths.
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc/uno
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uno ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uno_local ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uno_global ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKDIR}/uno/doc/uno_long.pdf ${DESTDIR}${PREFIX}/share/doc/uno
|
|
${INSTALL_DATA} ${WRKDIR}/uno/doc/uno_man.pdf ${DESTDIR}${PREFIX}/share/doc/uno
|
|
${INSTALL_DATA} ${WRKDIR}/uno/doc/uno_manpage.pdf ${DESTDIR}${PREFIX}/share/doc/uno
|
|
${INSTALL_DATA} ${WRKDIR}/uno/doc/uno_short.pdf ${DESTDIR}${PREFIX}/share/doc/uno
|
|
${INSTALL_MAN} ${WRKDIR}/uno/doc/uno.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|