mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
bc53620c8e
- Stage support PR: 187047 Submitted by: Ports Fury
24 lines
691 B
Gnuplot
24 lines
691 B
Gnuplot
############################################################
|
|
CXX := c++
|
|
STRIP := true
|
|
############################################################
|
|
MKDIR_CMD = test -d $(@D) || mkdir -p $(@D)
|
|
############################################################
|
|
|
|
SDL := ${LOCALBASE}
|
|
SDL_IMAGE := ${LOCALBASE}
|
|
|
|
CPPFLAGS += -I${SDL}/include/SDL -I${SDL}/include -I${SDL_IMAGE}/include/SDL
|
|
LDFLAGS += \
|
|
-L${SDL_IMAGE}/lib -Wl,-rpath -Wl,${SDL_IMAGE}/lib \
|
|
-L${SDL}/lib -Wl,-rpath -Wl,${SDL}/lib \
|
|
-lSDL_image -lSDL -lSDLmain -pthread -lpng
|
|
|
|
prog: Release/54321-$(OPSYS)
|
|
|
|
Release/54321-$(OPSYS):
|
|
-@$(MKDIR_CMD)
|
|
echo '#!/bin/sh' > $@
|
|
echo "cd ./bin/$(OPSYS) && exec ./54321 \$$*" >> $@
|
|
chmod 755 $@
|