$NetBSD: patch-aa,v 1.8 2005/01/24 20:34:11 tv Exp $ --- Makefile.orig 1996-07-19 19:35:46.000000000 -0400 +++ Makefile @@ -30,31 +30,37 @@ # uncomment the following two lines if you want to include X11 support # (mpeg2decode) -#USE_DISP = -DDISPLAY -#LIBS = -lX11 +USE_DISP = -DDISPLAY +LIBS = -lX11 + +OPSYS!= uname -s # 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 +.if ${OPSYS} != "Interix" +USE_SHMEM = -DSH_MEM +LIBS = -lXext -lX11 +.endif + +.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${X11BASE}/include +LIBRARYDIR = -L${X11BASE}/lib -Wl,-R${X11BASE}/lib # select one of the following CC CFLAGS settings # # GNU gcc # -CC = gcc -CFLAGS = -O2 all: mpeg2decode mpeg2encode