/[gentoo-alt]/trunk/overlay/eclass/openbsd.eclass
Gentoo

Contents of /trunk/overlay/eclass/openbsd.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1061 - (show annotations) (download)
Sat Feb 18 19:42:21 2006 UTC (10 years, 2 months ago) by reb
File size: 1878 byte(s)
add Makefile.bsd-wrapper

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4 #
5 # Karol Pasternak, <reb@gentoo.org>
6
7 inherit versionator eutils flag-o-matic bsdmk
8
9 ECLASS=openbsd
10 INHERITED="$INHERITED $ECLASS"
11
12 KEYWORDS="~x86-obsd"
13 LICENSE="BSD"
14 HOMEPAGE="http://www.openbsd.org/"
15
16 # Define global package names
17 LIB="openbsd-lib-${PV}"
18 LIB_GNU="openbsd-lib_gnu-${PV}"
19 BIN="openbsd-bin-${PV}"
20 SHARE="openbsd-share-${PV}"
21 UBIN="openbsd-ubin-${PV}"
22 USBIN="openbsd-usbin-${PV}"
23 HEADERS="openbsd-headers-${PV}"
24 #? CRYPTO="freebsd-crypto-${PV}"
25 #? LIBEXEC="freebsd-libexec-${PV}"
26 SBIN="openbsd-sbin-${PV}"
27 GNU="openbsd-gnu-${PV}"
28 ETC="openbsd-etc-${PV}"
29 SYS="openbsd-sys-${PV}"
30 INCLUDE="openbsd-include-${PV}"
31 #? RESCUE="freebsd-rescue-${PV}"
32
33 #### mkmake <options>
34 # calls bsd-make command with the given options, passing ${mymakeopts} to
35 # enable ports to useflags bridge.
36 # ( using default openbsd make )
37 ###########################################################################
38
39 mkmake() {
40 [[ -z ${DMAKE} ]] && DMAKE="/usr/bin/make"
41
42 tc-export CC CXX LD
43
44 ${DMAKE} -f Makefile.bsd-wrapper ${MAKEOPTS} ${EXTRA_EMAKE} ${mymakeopts} NO_WERROR=
45 "$@"
46 }
47
48 mkinstall() {
49 [[ -z ${DMAKE} ]] && DMAKE="/usr/bin/make"
50
51 ${DMAKE} -f Makefile.bsd-wrapper ${mymakeopts} NO_WERROR= DESTDIR="${D}" "$@" install
52 }
53
54 ##########################################################################
55
56 # Release version
57 RV="$(get_version_component_range 1-2)"
58
59 EXPORT_FUNCTIONS src_compile src_install src_unpack
60
61 IUSE="profile"
62
63 openbsd_src_unpack() {
64 unpack ${A}
65 cd ${S}
66
67 dummy_mk ${REMOVE_SUBDIRS}
68 }
69
70 openbsd_src_compile() {
71 use profile && filter-flags "-fomit-frame-pointer"
72 use profile || mymakeopts="${mymakeopts} NOPROFILE= "
73
74 bsdmk_src_compile
75 }
76
77 openbsd_src_install() {
78 use profile || mymakeopts="${mymakeopts} NOPROFILE= "
79
80 bsdmk_src_install
81 }

  ViewVC Help
Powered by ViewVC 1.1.20