GNU Make doesn't like comments on the same line with variable assignments.

Also, include bsd.prefs.mk to get OPSYS.
This commit is contained in:
Sergey Svishchev 2007-01-03 23:56:25 +00:00 committed by Thomas Klausner
parent 4302c580cd
commit 67db3efe30

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.8 2006/10/26 11:33:42 poppnk Exp $ # $NetBSD: Makefile,v 1.9 2007/01/03 23:56:25 shattered Exp $
# #
DISTNAME= and-1.2.0 DISTNAME= and-1.2.0
PKGREVISION= 1 PKGREVISION= 2
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=and/} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=and/}
@ -11,8 +11,11 @@ HOMEPAGE= http://and.sourceforge.net/
COMMENT= Auto nice daemon COMMENT= Auto nice daemon
USE_TOOLS+= gmake USE_TOOLS+= gmake
USE_LANGUAGES= c
BUILD_TARGET= default BUILD_TARGET= default
.include "../../mk/bsd.prefs.mk"
MYARCH= ${OPSYS} MYARCH= ${OPSYS}
.if ${MYARCH} == "NetBSD" .if ${MYARCH} == "NetBSD"
MYARCH= OpenBSD MYARCH= OpenBSD
@ -26,7 +29,7 @@ SUBST_SED.pref= -e s,/usr/local,${PREFIX},
SUBST_CLASSES+= arch SUBST_CLASSES+= arch
SUBST_STAGE.arch= pre-patch SUBST_STAGE.arch= pre-patch
SUBST_FILES.arch= Makefile SUBST_FILES.arch= Makefile
SUBST_SED.arch= -e s,ARCH=,ARCH=${MYARCH}\ \#,g SUBST_SED.arch= -e s,ARCH=.*,ARCH=${MYARCH},g
SUBST_CLASSES+= int SUBST_CLASSES+= int
SUBST_STAGE.int= pre-patch SUBST_STAGE.int= pre-patch