View | Details | Raw Unified | Return to bug 253033
Collapse All | Expand All

(-)Makefile (-3 / +3 lines)
Lines 11-26 Link Here
11
COMMENT=	PC/PC-Compatible low-level emulator striving for accuracy
11
COMMENT=	PC/PC-Compatible low-level emulator striving for accuracy
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
15
USES=		autoreconf compiler gl gmake openal pkgconfig sdl zip
16
USES=		autoreconf compiler gl gmake localbase:ldflags openal pkgconfig sdl zip
16
USE_GL=		gl
17
USE_GL=		gl
17
USE_SDL=	sdl2
18
USE_SDL=	sdl2
18
USE_WX=		3.0
19
USE_WX=		3.0
19
20
20
WRKSRC=		${WRKDIR}/pcem_emulator-pcem-faf5d6423060/
21
WRKSRC=		${WRKDIR}/pcem_emulator-pcem-faf5d6423060/
21
PATCHDIR=files
22
PLIST_FILES=	bin/pcem
22
PLIST_FILES=	bin/pcem
23
CONFIGURE_ARGS=	--enable-release-build --with-wx-config=wxgtk3u-3.0-config
23
CONFIGURE_ARGS=	--enable-release-build --with-wx-config="${WX_CONFIG}"
24
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
25
ONLY_FOR_ARCHS=	amd64
25
ONLY_FOR_ARCHS=	amd64
26
26
(-)files/patch-configure.ac (-27 / +6 lines)
Lines 1-32 Link Here
1
--- configure.ac.orig	2019-04-17 19:37:48 UTC
1
--- configure.ac.orig	2019-04-17 19:37:48 UTC
2
+++ configure.ac
2
+++ configure.ac
3
@@ -64,6 +64,10 @@ case "${host_cpu}" in
3
@@ -60,7 +60,7 @@ case "${host_cpu}" in
4
     CPU=i386
5
     AC_MSG_RESULT(${host_cpu})
6
     ;;
7
-    x86_64)
8
+    x86_64|amd64)
4
     CPU=x86_64
9
     CPU=x86_64
5
     AC_MSG_RESULT(${host_cpu})
10
     AC_MSG_RESULT(${host_cpu})
6
     ;;
11
     ;;
7
+    amd64)
8
+    CPU=x86_64
9
+    AC_MSG_RESULT(${host_cpu})
10
+    ;;
11
     *)
12
     AC_MSG_ERROR([Unsupported CPU.])
13
     ;;
14
@@ -149,6 +153,18 @@ case "$host" in
15
            [echo "You need to install the OpenAL library."
16
            exit -1])
17
        build_linux="yes"
18
+       ;;
19
+    *-*-freebsd*)
20
+       CFLAGS="$CFLAGS -I/usr/local/include"
21
+       CXXFLAGS="$CXXFLAGS -I/usr/local/include"
22
+       LDFLAGS="$LDFLAGS -L/usr/local/lib"
23
+       AC_CHECK_LIB([GL], [glGetError], [], \
24
+           [echo "You need to install the OpenGL library."
25
+           exit -1])
26
+       AC_CHECK_LIB([openal], [alGetError], [], \
27
+           [echo "You need to install the OpenAL library."
28
+           exit -1])
29
+       build_other="yes"
30
        ;;
31
     *)
32
        AC_CHECK_LIB([GL], [glGetError], [], \

Return to bug 253033