# $NetBSD: Makefile,v 1.22 2021/07/21 04:47:41 fcambus Exp $ # DISTNAME= uno_v213 PKGNAME= uno-2.13 CATEGORIES= devel MASTER_SITES= https://spinroot.com/uno/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://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"