#!/bin/sh
# Build script for XNEdit 1.6.3 (classic NEdit-style, target-keyed plain# Makefile - NOT Template A/autotools). The top-level Makefile has no# uname-autodetect: it dispatches on an explicit `make <target>` name to# `makefiles/Makefile.<target>`, so we add our own# makefiles/Makefile.hammerhead (patches/0001-add-makefile-hammerhead.patch)# rather than adapting an existing OS's file in place.set -e
PORTDIR=$(CDPATH= cd -- "$(dirname -- "$0")"&& pwd)cd "$SRCDIR"for p in "$PORTDIR"/patches/*.patch; do[ -f "$p"]||continue echo "==> Applying patch: $(basename "$p")" patch -p1 < "$p"doneexport PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH"gmake -j${JOBS:-1} hammerhead
# `install:` target respects PREFIX/DESTDIR as make ARGs (not env) -# see the openssl-vendor-wrapper DESTDIR gotcha.gmake install PREFIX="$PREFIX" DESTDIR="$PKGDIR"