2014-10-09 16:05:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2014/10/09 14:07:00 wiz Exp $
|
2004-12-02 11:08:03 +01:00
|
|
|
#
|
|
|
|
|
2013-04-06 05:45:05 +02:00
|
|
|
DISTNAME= sformat-3.5
|
|
|
|
PKGREVISION= 1
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/
|
2004-12-02 11:08:03 +01:00
|
|
|
|
2013-04-06 05:45:05 +02:00
|
|
|
MAINTAINER= Andreas.Hallmann@tiscali.de
|
|
|
|
HOMEPAGE= http://freshmeat.net/projects/sformat
|
|
|
|
COMMENT= SCSI disk maintainance, formating, and ultimative repair tool
|
2004-12-02 11:08:03 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-12-02 11:08:03 +01:00
|
|
|
TBL?= tbl
|
|
|
|
|
|
|
|
# avoid picking up a bad ${ARCH} during the build
|
2007-02-22 20:26:05 +01:00
|
|
|
MAKE_ENV+= ARCH=""
|
|
|
|
MAKE_ENV+= MAKEPROG="gmake"
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= COPTX=${CFLAGS:M*:Q}
|
|
|
|
MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q}
|
2009-02-09 18:27:40 +01:00
|
|
|
MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q} # won't work in MAKE_ENV!
|
2004-12-02 11:08:03 +01:00
|
|
|
|
|
|
|
# if we're using a gcc which is named gcc, we need to set CCOM=gcc
|
|
|
|
# in MAKE_ENV so the make infrastructure picks the right options.
|
|
|
|
.if !empty(CC:M*gcc*)
|
|
|
|
MAKE_ENV+= CCOM="gcc"
|
|
|
|
.endif
|
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
|
2004-12-02 11:08:03 +01:00
|
|
|
|
2007-06-27 15:40:49 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id
|
|
|
|
${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def
|
2012-06-28 07:15:38 +02:00
|
|
|
.for x in amd64 macppc
|
|
|
|
ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/${x}-netbsd-cc.rul
|
|
|
|
ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/${x}-netbsd-gcc.rul
|
|
|
|
.endfor
|
2007-06-27 15:40:49 +02:00
|
|
|
|
2004-12-02 11:08:03 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|