aboutsummaryrefslogtreecommitdiff
path: root/devel/cpuflags
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2010-04-15 11:54:26 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2010-04-15 11:54:26 +0000
commit48803622ef8b2ec69624f457a109b1cae5bad9c3 (patch)
tree7598bf16e6baaa32045a3e2c9ff3b157078e613b /devel/cpuflags
parent7333980e91d2ee24499a6fccef70b632297f8a39 (diff)
downloadports-48803622ef8b2ec69624f457a109b1cae5bad9c3.tar.gz
ports-48803622ef8b2ec69624f457a109b1cae5bad9c3.zip
Notes
Diffstat (limited to 'devel/cpuflags')
-rw-r--r--devel/cpuflags/Makefile19
-rw-r--r--devel/cpuflags/distinfo3
-rw-r--r--devel/cpuflags/files/patch-Makefile27
-rw-r--r--devel/cpuflags/pkg-descr2
-rw-r--r--devel/cpuflags/pkg-plist5
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile
new file mode 100644
index 000000000000..883dc57dec28
--- /dev/null
+++ b/devel/cpuflags/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: cpuflags
+# Date created: 2010/02/28
+# Whom: Quentin Stievenart <acieroid@awesom.eu>
+#
+# $FreeBSD$
+# $NetBSD: Makefile,v 1.149 2009/11/12 05:38:58 obache Exp $
+
+PORTNAME= cpuflags
+PORTVERSION= 1.41
+CATEGORIES= devel sysutils
+MASTER_SITES= http://awesom.eu/~acieroid/files/ports/${PORTNAME}/
+
+MAINTAINER= acieroid@awesom.eu
+COMMENT= Determine compiler flags to best target current cpu
+
+post-install:
+ ${REINPLACE_CMD} -i '' -e "s,@@SH@@,${SH:Q}," ${PREFIX}/bin/cpuflags
+
+.include <bsd.port.mk>
diff --git a/devel/cpuflags/distinfo b/devel/cpuflags/distinfo
new file mode 100644
index 000000000000..7569c0678377
--- /dev/null
+++ b/devel/cpuflags/distinfo
@@ -0,0 +1,3 @@
+MD5 (cpuflags-1.41.tar.gz) = 52744b3b560997028a915b9ca90a00ac
+SHA256 (cpuflags-1.41.tar.gz) = 234428eea1856aab7c77dafadd10bae626b2a075272db7ec76a699e9c38ff14e
+SIZE (cpuflags-1.41.tar.gz) = 45568
diff --git a/devel/cpuflags/files/patch-Makefile b/devel/cpuflags/files/patch-Makefile
new file mode 100644
index 000000000000..3f5a6e52a333
--- /dev/null
+++ b/devel/cpuflags/files/patch-Makefile
@@ -0,0 +1,27 @@
+--- Makefile 2010-03-06 22:32:13.000000000 +0100
++++ Makefile.new 2010-03-06 23:12:46.000000000 +0100
+@@ -18,8 +18,6 @@
+ SED?=sed
+
+ all:
+- ${SED} -e 's|@PREFIX@|${PREFIX}|g' cpuflags.1 > cpuflags.1.out
+- ${SED} -e 's|@PREFIX@|${PREFIX}|g' cpuflags.mk > cpuflags.mk.out
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' cpuflags.sh > cpuflags.sh.out
+
+ clean:
+@@ -27,14 +25,9 @@
+
+ install:
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${BINDIR}
+- ${INSTALL_MAN_DIR} ${DESTDIR}${MANDIR}
+- ${INSTALL_DATA_DIR} ${DESTDIR}${SHAREMKDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${SUBRDIR}
+ ${INSTALL_SCRIPT} cpuflags.sh.out ${DESTDIR}${BINDIR}/cpuflags
+- ${INSTALL_MAN} cpuflags.1.out ${DESTDIR}${MANDIR}/cpuflags.1
+- ${INSTALL_DATA} optimize_gcc.mk ${DESTDIR}${SHAREMKDIR}/optimize_gcc.mk
+- ${INSTALL_DATA} cpuflags.mk.out ${DESTDIR}${SHAREMKDIR}/cpuflags.mk
+- ${INSTALL_DATA} subr_* ${DESTDIR}${SUBRDIR}
++ ${INSTALL_DATA} subr_FreeBSD subr_gcc subr_x86 ${DESTDIR}${SUBRDIR}
+
+ dist:
+ mkdir -p DIST/cpuflags-${VERSION}
diff --git a/devel/cpuflags/pkg-descr b/devel/cpuflags/pkg-descr
new file mode 100644
index 000000000000..bd9da12fa8c0
--- /dev/null
+++ b/devel/cpuflags/pkg-descr
@@ -0,0 +1,2 @@
+cpuflags returns the appropriate gcc flags to optimise compilation for the
+current CPU.
diff --git a/devel/cpuflags/pkg-plist b/devel/cpuflags/pkg-plist
new file mode 100644
index 000000000000..2d5a5bfad365
--- /dev/null
+++ b/devel/cpuflags/pkg-plist
@@ -0,0 +1,5 @@
+bin/cpuflags
+%%DATADIR%%/subr_FreeBSD
+%%DATADIR%%/subr_gcc
+%%DATADIR%%/subr_x86
+@dirrm %%DATADIR%%