Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Sep 2012 15:56:50 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303915 - head/audio/xmms-sapplug
Message-ID:  <201209081556.q88FuoQh016665@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Sat Sep  8 15:56:49 2012
New Revision: 303915
URL: http://svn.freebsd.org/changeset/ports/303915

Log:
  - Use OPTIONSng
  - Remove deprecated header information

Modified:
  head/audio/xmms-sapplug/Makefile

Modified: head/audio/xmms-sapplug/Makefile
==============================================================================
--- head/audio/xmms-sapplug/Makefile	Sat Sep  8 15:37:56 2012	(r303914)
+++ head/audio/xmms-sapplug/Makefile	Sat Sep  8 15:56:49 2012	(r303915)
@@ -1,9 +1,4 @@
-# New ports collection makefile for:	xmms-sapplug
-# Date created:				14 Jul 2005
-# Whom:					Emanuel Haupt <ehaupt@critical.ch>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	xmms-sapplug
 DISTVERSION=	0.3f
@@ -29,20 +24,21 @@ WRKSRC=		${WRKDIR}/sapplug-${DISTVERSION
 
 PLIST_FILES=	lib/xmms/Input/libsap.so
 
-OPTIONS=	OPTIMIZED_CXXFLAGS "use optimized C++ flags" on \
-		OPTIMIZED_CFLAGS   "use optimized C flags"   on
+OPTIONS_DEFINE=	OPTIMIZED_CFLAGS
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 .if ${CXX:T} != "clang++"
 CXXFLAGS+=	--no-exceptions
 .endif
 
-.if defined(WITH_OPTIMIZED_CXXFLAGS)
+.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
+CFLAGS+=	-fpic -DPIC
+.endif
+
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
 CXXFLAGS+=	-fPIC -fpic -funroll-all-loops -fno-strength-reduce \
 		-finline-functions -fomit-frame-pointer
-.endif
-.if defined(WITH_OPTIMIZED_CFLAGS)
 CFLAGS+=	-fPIC -fpic -funroll-all-loops -fomit-frame-pointer \
 		-fno-strength-reduce
 .endif
@@ -59,4 +55,4 @@ do-install:
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209081556.q88FuoQh016665>