# $OpenBSD: Makefile.template,v 1.54 2008/01/13 16:43:57 espie Exp $

ONLY_FOR_ARCHS=	i386 amd64

COMMENT=	flash-ROM programmer for BIOS etc

DISTNAME=	flashrom-0.92pre1060
EXTRACT_SUFX=	.tar.bz2

#SHARED_LIBS=	

CATEGORIES=	sysutils

HOMEPAGE=	http://www.flashrom.org/

MAINTAINER=	Stuart Henderson <sthen@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	c z

MASTER_SITES=	http://spacehopper.org/mirrors/

#MODULES=		
#BUILD_DEPENDS=	
#RUN_DEPENDS=		
LIB_DEPENDS=	pci::sysutils/pciutils
#REGRESS_DEPENDS=	

#MAKE_FLAGS=		
#MAKE_ENV=		
#FAKE_FLAGS=		
#REGRESS_FLAGS=	

#SEPARATE_BUILD=	concurrent  (build simultaneously on all arches)
#SEPARATE_BUILD=	simple  (configure/build still recreates files in source)
#USE_X11=		Yes
USE_GMAKE=		Yes
#USE_LIBTOOL=		Yes
# 	  perl [modbuild]: perl's MakeMaker Makefile.PL (modbuild: perl's
#	  Module::Build Build.PL)
# 	  gnu [autoconf] [old] [dest]: gnu style configure (old: no
# 	  sysconfdir), (dest: add DESTDIR, does not handle it),
# 	  (autoconf: needed by port, implies gnu)
# 	XXX: cygnus products do NOT use autoconf for making the main
# 		configure from configure.in
# 	  imake [noman]: port uses imake for configuration.
#   	  (noman: no man page installation)
# 	  simple: port has its own configure script
#CONFIGURE_STYLE=	
#CONFIGURE_SCRIPT=	 (if other than configure)
#CONFIGURE_ARGS+=	${CONFIGURE_SHARED}
#CONFIGURE_ENV=	

# for gnu stuff
#AUTOCONF_VERSION=	 (defaults to 2.13)
#AUTOMAKE_VERSION=	 (defaults to 1.4)
#MODGNU_CONFIG_GUESS_DIRS=  (defaults to ${WRKSRC}

#NO_BUILD=		Yes
#NO_REGRESS=		Yes

CPPFLAGS+=		-I${LOCALBASE}/include
LDFLAGS+=		-L${LOCALBASE}/lib
FAKE_FLAGS=		PREFIX="${PREFIX}" MANDIR="${PREFIX}/man"
#MAKE_FILE=		
#PKG_ARCH=		*
#WRKDIST=		 if other than ${WRKDIR}/$DISTNAME
#WRKSRC=		 if other than ${WRKDIST}
#WRKBUILD=		 if other than ${WRKSRC}
#WRKCONF=		 if other than ${WRKBUILD}

#ALL_TARGET=		
#INSTALL_TARGET=	
#REGRESS_TARGET=	

.include <bsd.port.mk>
