openbsd-ports/textproc/aspell/core/Makefile
ajacoutot 3338962afd - disable threading; by default it will link with -lpthread which is
wrong; linking with -pthread will not get recorded and induce other
issues while non-threaded apps won't be able to use libaspell at all
- fix post-build target to make sure the aspell "en" dictionnary building
process can find all required libs
- add CPPFLAGS and LDFLAGS to CONFIGURE_ENV to that libaspell.la is created
with correct ddependency_libs
2008-11-13 17:07:27 +00:00

60 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2008/11/13 17:07:27 ajacoutot Exp $
COMMENT= spell checker designed to eventually replace Ispell
DISTNAME= aspell-0.60.6
PKGNAME= ${DISTNAME}p3
SHARED_LIBS += aspell 17.0 # .16.4
SHARED_LIBS += pspell 17.0 # .16.4
DIST_SUBDIR= aspell
CATEGORIES= textproc
DIST_EN= aspell6-en-6.0-0
MASTER_SITES0= ${MASTER_SITE_GNU:=aspell/}
MASTER_SITES1= ${MASTER_SITE_GNU:=aspell/dict/en/}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:0 \
${DIST_EN}.tar.bz2:1
HOMEPAGE= http://aspell.net/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m ncurses stdc++
MODULES= devel/gettext
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-static \
--enable-dict-dir=${PREFIX}/share/aspell
post-build:
cd ${WRKDIR}/${DIST_EN} && \
cp ${WRKSRC}/data/* . && \
LD_LIBRARY_PATH=${WRKBUILD}/.libs ./configure --vars \
ASPELL=${WRKBUILD}/.libs/aspell \
ASPELL_FLAGS="--local-data-dir=${WRKDIR}/${DIST_EN}" \
PREZIP=${WRKBUILD}/prezip-bin && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
LD_LIBRARY_PATH=${WRKBUILD}/.libs
post-install:
cd ${WRKDIR}/${DIST_EN} && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
dictdir=${PREFIX}/share/aspell \
datadir=${PREFIX}/lib/aspell \
${INSTALL_TARGET}
.include <bsd.port.mk>