pkgsrc/inputmethod/multiskkserv/Makefile
jperkin 8d04ae4456 Remove mk/find-prefix.mk usage from the inputmethod category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:50:57 +00:00

40 lines
1,014 B
Makefile

# $NetBSD: Makefile,v 1.5 2015/11/25 12:50:58 jperkin Exp $
#
DISTNAME= multiskkserv-20100128-ac
PKGNAME= ${DISTNAME:S/-ac//}
CATEGORIES= inputmethod japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://github.com/sina-ht/multiskkserv/
COMMENT= Simple skk multi-dictionary server
LICENSE= gnu-gpl-v2
DEPENDS= skk-jisyo-cdb-[0-9]*:../../inputmethod/skk-jisyo-cdb
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
INSTALLATION_DIRS= ${DOCSDIR}
INSTALL_DOCS= README \
README.j
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
RCD_SCRIPTS= multiskkserv
post-install:
.for filename in ${INSTALL_DOCS}
${INSTALL_DATA} ${WRKSRC}/${filename} ${DESTDIR}/${DOCSDIR}
.endfor
SUBST_CLASSES+= pthread
SUBST_STAGE.pthread= pre-configure
SUBST_FILES.pthread= configure
SUBST_SED.pthread= -e 's/-D_REENTRANT/${PTHREAD_CFLAGS}/g'
SUBST_SED.pthread+= -e 's/-lpthread/${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}/g'
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"