1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
# $OpenBSD: Makefile.template,v 1.83 2019/07/02 12:03:14 sthen Exp $
#
ONLY_FOR_ARCHS = amd64 i386 sparc64
COMMENT = Direct Rendering Manager library and headers
# XX .99
DISTNAME = libdrm-2.4.98
SHARED_LIBS = drm 7.7 drm_radeon 4.0 drm_intel 5.4 \
drm_amdgpu 1.8 drm_nouveau 3.0
# the category used in the directory name, /usr/ports/<category>/portname,
# must be included and listed first.
CATEGORIES = sysutils
HOMEPAGE = https://gitlab.freedesktop.org/mesa/drm
MAINTAINER = xenocara@openbsd.org
# MIT
PERMIT_PACKAGE = Yes
WANTLIB = m pciaccess
MASTER_SITES = https://dri.freedesktop.org/libdrm/
# Dependencies
#MODULES = ???
#BUILD_DEPENDS = ???
#RUN_DEPENDS = ???
#LIB_DEPENDS = ???
#TEST_DEPENDS = ???
#MAKE_FLAGS = ???
#MAKE_ENV = ???
#FAKE_FLAGS = ???
#TEST_FLAGS = ???
# build/configuration variables
#
SEPARATE_BUILD = Yes
#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC)
#USE_GMAKE = Yes
#USE_GROFF = Yes
# Programs that require GNU libtool to build instead of the OpenBSD one
# should use this option. Add a comment explaining why. Don't use this if
# a port requires libtool's .m4 files but otherwise can use OpenBSD libtool,
# in that case use "BUILD_DEPENDS=devel/libtool" instead.
#USE_LIBTOOL= gnu
# Set CONFIGURE_STYLE to value corresponding to some standard configuration
# perl [modbuild]: perl's MakeMaker Makefile.PL (modbuild: perl's
# Module::Build Build.PL)
# gnu [autoconf] [old] [dest]: gnu style configure (old: no
# sysconfdir), (dest: add DESTDIR, does not handle it),
# autoconf: run autoconf to regenerate configure script. implies gnu.
# (see also "do-gen" target below).
# XXX: cygnus products do NOT use autoconf for making the main
# configure from configure.in
# imake [noman]: port uses imake for configuration.
# (noman: no man page installation)
# simple: port has its own configure script
# none: override default CONFIGURE_STYLE coming from a module
# (needed for some ports using lang/python, etc.)
CONFIGURE_STYLE = gnu
#CONFIGURE_SCRIPT = ??? (if other than configure)
#CONFIGURE_ARGS = ???
#CONFIGURE_ENV = ???
# for gnu stuff
#AUTOCONF_VERSION = ??? (defaults to 2.13)
#AUTOMAKE_VERSION = ??? (defaults to 1.4)
# config.guess and others are copied here
#MODGNU_CONFIG_GUESS_DIRS = ??? (defaults to ${WRKSRC})
# Is the build automagic or is it interactive
#
#IS_INTERACTIVE = Yes
#TEST_IS_INTERACTIVE = Yes
# Assume you have one multiple choice flavor: 1 2 3 and switches a b.
# You would write
#
#FLAVORS = 1 2 3 a b
#FLAVOR ?=
# grab multiple choice value
#CHOICE = ${FLAVOR:Na:Nb}
# check that CHOICE is 1 OR 2 OR 3, or error out
#.if ${CHOICE} == "1"
# code for 1
#.elif ${CHOICE} == "2"
# code for 2
#.elif ${CHOICE} == "3"
# code for 3
#.else
#ERRORS += "Fatal: Conflicting flavor: ${FLAVOR}"
#.endif
# check for switches
#.if ${FLAVOR:Ma}
# code for a
#.endif
#.if ${FLAVOR:Mb}
# code for b
#.endif
# Things that we don't want to do for this port/package
# Generally, DON'T set anything to No if it's not needed.
# The time gained is not worth it.
#
#NO_BUILD = Yes
#NO_TEST = Yes
# Overrides for default values
#
#CFLAGS = ???
#LDFLAGS = ???
#MAKE_FILE = ???
#PKG_ARCH = ??? (* for arch-independent packages)
#WRKDIST = ??? if other than ${WRKDIR}/${DISTNAME}
#WRKSRC = ??? if other than ${WRKDIST}
#WRKBUILD = ??? if other than ${WRKSRC}
#WRKCONF = ??? if other than ${WRKBUILD}
#ALL_TARGET = ???
#INSTALL_TARGET = ???
#TEST_TARGET = ???
# For ports that use a script or autoreconf to generate autoconf/automake
# files (where "CONFIGURE_STYLE=autoconf" isn't enough), use some/all of these
# dependencies, and add a do-gen target:
#
#BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
# ${MODGNU_AUTOMAKE_DEPENDS} \
# devel/libtool
#
#do-gen:
# cd ${WRKSRC}; ${AUTOCONF_ENV} ./autogen.sh
.include <bsd.port.mk>
|