pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/pt2-clone pt2-clone: Normalize build and install...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b39a09c46eed
branches:  trunk
changeset: 444540:b39a09c46eed
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jan 10 11:31:32 2021 +0000

description:
pt2-clone: Normalize build and installation process.

diffstat:

 audio/pt2-clone/Makefile |  17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diffs (33 lines):

diff -r 3f7fee0c6ffb -r b39a09c46eed audio/pt2-clone/Makefile
--- a/audio/pt2-clone/Makefile  Sun Jan 10 11:20:17 2021 +0000
+++ b/audio/pt2-clone/Makefile  Sun Jan 10 11:31:32 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2021/01/06 01:19:20 js Exp $
+# $NetBSD: Makefile,v 1.3 2021/01/10 11:31:32 nia Exp $
 
 DISTNAME=      pt2-clone-1.28
 CATEGORIES=    audio
@@ -11,18 +11,13 @@
 COMMENT=       ProTracker 2 clone for Windows/macOS/Linux
 LICENSE=       modified-bsd
 
-INSTALLATION_DIRS+=    bin share/examples/pt2-clone
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
 
-do-build:
-       cd ${WRKSRC} && ${CC} -o pt2-clone \
-               -O2 -DNDEBUG \
-               $$(sdl2-config --cflags --libs) \
-               src/*.c src/gfx/*.c
+INSTALLATION_DIRS+=    share/examples/pt2-clone
 
-do-install:
-       cd ${WRKSRC} && ${INSTALL} -m 755 pt2-clone \
-               ${DESTDIR}${PREFIX}/bin/pt2-clone
-       cd ${WRKSRC} && ${INSTALL} -m 644 release/other/protracker.ini \
+post-install:
+       cd ${WRKSRC} && ${INSTALL_DATA} release/other/protracker.ini \
                ${DESTDIR}${PREFIX}/share/examples/pt2-clone/protracker.ini
 
 .include "../../devel/SDL2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index