6de7fb333f
ok alek@
42 lines
920 B
Makefile
42 lines
920 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2005/01/18 17:34:15 mbalmer Exp $
|
|
|
|
COMMENT= "general purpose dynamic array"
|
|
|
|
VERSION= 1.0.1
|
|
DISTNAME= Judy-${VERSION}
|
|
PKGNAME= libJudy-${VERSION}
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://judy.sourceforge.net/
|
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
|
|
|
# LGPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=judy/}
|
|
|
|
CONFIGURE_STYLE= GNU
|
|
USE_GMAKE= Yes
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/libJudy
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
@cd ${WRKSRC}/src/apps/demo; tar cf - * | tar xf - -C ${EXAMPLESDIR}
|
|
@sed s,y0y0,${LOCALBASE},g < ${WRKSRC}/src/apps/demo/run_demo > \
|
|
${EXAMPLESDIR}/run_demo
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
.for m in ${MACHINE_ARCH}
|
|
.if ${LP64_ARCHS:L:M$m}
|
|
CONFIGURE_ARGS+=--enable-64-bit
|
|
.else
|
|
CONFIGURE_ARGS+=--enable-32-bit
|
|
.endif
|
|
.endfor
|