4c8382aec0
their files via a custom do-install target.
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:38 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= uno_v212
|
|
PKGNAME= uno-2.12
|
|
#PKGREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://spinroot.com/uno/
|
|
|
|
MAINTAINER= shannonjr@NetBSD.org
|
|
HOMEPAGE= http://spinroot.com/uno/
|
|
COMMENT= Tool for source code analysis
|
|
|
|
WRKSRC= ${WRKDIR}/uno/src
|
|
MAKE_FILE= makefile
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_TOOLS+= bison gmake flex
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
BUILDLINK_TRANSFORM+= rm:-m32
|
|
.endif
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= post-patch
|
|
SUBST_FILES.prefix= makefile
|
|
SUBST_SED.prefix= -e "s,/usr/bin,${PREFIX}/bin,g"
|
|
SUBST_MESSAGE.prefix= Fixing hardcoded paths.
|
|
|
|
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_DIR} ${DESTDIR}${PREFIX}/share/doc/uno
|
|
${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"
|