summaryrefslogtreecommitdiff
path: root/graphics/mpeg2codec/patches/patch-aa
blob: 02faf8ff6fbea5ef3aff31b48ecf093111114085 (plain)
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
$NetBSD: patch-aa,v 1.6 2001/08/29 22:41:19 jlam Exp $

--- Makefile.orig	Sat Jul 20 01:35:46 1996
+++ Makefile
@@ -30,31 +30,35 @@
 # uncomment the following two lines if you want to include X11 support
 # (mpeg2decode)
 
-#USE_DISP = -DDISPLAY
-#LIBS = -lX11
+USE_DISP = -DDISPLAY
+LIBS = -lX11
 
 # uncomment the following two lines if you want to use shared memory
 # (faster display if server and client run on the same machine)
 # (mpeg2decode)
 
-#USE_SHMEM = -DSH_MEM
-#LIBS = -lXext -lX11
+USE_SHMEM = -DSH_MEM
+LIBS = -lXext -lX11
+
+OPSYS!= uname -s
+
+.if ${OPSYS} == "SunOS"
+LIBS+= -lsocket -lnsl
+.endif
 
 # if your X11 include files / libraries are in a non standard location:
 # set INCLUDEDIR to -I followed by the appropriate include file path and
 # set LIBRARYDIR to -L followed by the appropriate library path
 # (mpeg2decode)
 
-#INCLUDEDIR = -I/usr/openwin/include
-#LIBRARYDIR = -L/usr/openwin/lib
+INCLUDEDIR = -I${BUILDLINK_X11_DIR}/include
+LIBRARYDIR = -L${BUILDLINK_X11_DIR}/lib -Wl,-R${X11BASE}/lib
 
 # select one of the following CC CFLAGS settings
 
 #
 # GNU gcc
 #
-CC = gcc
-CFLAGS = -O2
 
 all: mpeg2decode mpeg2encode