2009-08-18 19:15:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2009/08/18 23:15:16 jolan Exp $
|
2003-11-20 22:41:35 -05:00
|
|
|
|
2007-09-15 16:59:36 -04:00
|
|
|
COMMENT= spell checker designed to eventually replace Ispell
|
2008-10-28 12:51:17 -04:00
|
|
|
|
|
|
|
DISTNAME= aspell-0.60.6
|
2009-08-18 19:15:16 -04:00
|
|
|
PKGNAME= ${DISTNAME}p4
|
2008-10-28 12:51:17 -04:00
|
|
|
SHARED_LIBS += aspell 17.0 # .16.4
|
|
|
|
SHARED_LIBS += pspell 17.0 # .16.4
|
2003-11-20 22:41:35 -05:00
|
|
|
DIST_SUBDIR= aspell
|
|
|
|
CATEGORIES= textproc
|
|
|
|
|
2008-10-28 12:51:17 -04:00
|
|
|
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/
|
2003-11-20 22:41:35 -05:00
|
|
|
|
2008-10-28 12:51:17 -04:00
|
|
|
# LGPLv2.1
|
2003-11-20 22:41:35 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-11-13 12:07:27 -05:00
|
|
|
WANTLIB= c m ncurses stdc++
|
2008-10-28 12:51:17 -04:00
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
2008-11-13 12:07:27 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2008-10-28 12:51:17 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
|
|
|
--enable-dict-dir=${PREFIX}/share/aspell
|
2003-11-20 22:41:35 -05:00
|
|
|
|
|
|
|
post-build:
|
2008-10-28 12:51:17 -04:00
|
|
|
cd ${WRKDIR}/${DIST_EN} && \
|
|
|
|
cp ${WRKSRC}/data/* . && \
|
2008-11-13 12:07:27 -05:00
|
|
|
LD_LIBRARY_PATH=${WRKBUILD}/.libs ./configure --vars \
|
|
|
|
ASPELL=${WRKBUILD}/.libs/aspell \
|
2008-10-28 12:51:17 -04:00
|
|
|
ASPELL_FLAGS="--local-data-dir=${WRKDIR}/${DIST_EN}" \
|
|
|
|
PREZIP=${WRKBUILD}/prezip-bin && \
|
2008-11-13 12:07:27 -05:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
|
|
|
|
LD_LIBRARY_PATH=${WRKBUILD}/.libs
|
2003-11-20 22:41:35 -05:00
|
|
|
|
|
|
|
post-install:
|
2008-10-28 12:51:17 -04:00
|
|
|
cd ${WRKDIR}/${DIST_EN} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
|
2008-10-31 06:29:20 -04:00
|
|
|
dictdir=${PREFIX}/share/aspell \
|
|
|
|
datadir=${PREFIX}/lib/aspell \
|
2008-10-28 12:51:17 -04:00
|
|
|
${INSTALL_TARGET}
|
2003-11-20 22:41:35 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|